<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PlanetMysql.ru - информация о СУБД MySQL &#187; sun</title>
	<atom:link href="http://planetmysql.ru/category/sun/feed/" rel="self" type="application/rss+xml" />
	<link>http://planetmysql.ru</link>
	<description>Блог о самой популярной СУБД MySQL</description>
	<lastBuildDate>Fri, 10 Sep 2010 11:16:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Farewell CHM, hello EPUB!</title>
		<link>http://blogs.sun.com/mysqlf/entry/farewell_chm_hello_epub?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=farewell-chm-hello-epub</link>
		<comments>http://blogs.sun.com/mysqlf/entry/farewell_chm_hello_epub#comments</comments>
		<pubDate>Mon, 06 Sep 2010 09:23:45 +0000</pubDate>
		<dc:creator>Stefan Hinz</dc:creator>
				<category><![CDATA[chm]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[formats]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/mysqlf/entry/farewell_chm_hello_epub</guid>
		<description><![CDATA[For a long time, the MySQL Documentation Team has been providing CHM files for most MySQL documentation we publish. Like many other formats, CHM-format docs can be downloaded from http://dev.mysql.com/doc. CHM (Compiled HTML Help) has been the de facto standard help file format on Windows since 1997, but the technology behind it is outdated and has all kinds of quirks. The successor format introduced with Windows Vista is AP Help, but it hasn't taken off in practice so far. So, with CHM being outdated and AP Help spread anything but widely, lots of vendors have started providing documentation on Windows in PDF or HTML format.Building CHM-format documentation is a challenge of its own. I'll not go into details here, so let me just state that it requires a dedicated Windows box (or VM), and while it can be automated using Power Shell commands, there's no way to find out whether or not a CHM file was built correctly, except by manual inspection. This makes it different from all other documentation formats where technical QA is done (successfully) in an automated fashion.With the increasing complexity and size of our documentation (the MySQL 5.1 Manual contains more than 1.6 million words now!), providing CHM has become more and more of a pain, because builds tend to break more often. We've stopped shipping CHM with the MySQL Server on Windows months ago because we simply couldn't guarantee that the help file shipped with the software would work. Also, we're running short on hardware resources, so we'd rather stop wasting the resources we have on building a format that's of limited use, anyway.This is why we'll stop providing CHM for any of the documentation we publish.To alleviate potential pains anyone might have with this decision, let me tell you that we've started providing EPUB-format docs. EPUB (see http://en.wikipedia.org/wiki/EPUB) is an open standard format for screen readers, mobile or not, and is fairly easy (and not resource-intensive!) to compile. Thanks to Lenz for suggesting to build EPUB!Go to http://dev.mysql.com/doc to grab MySQL documentation in EPUB format. To read EPUB on desktop machines, I use a Firefox add-on, unsurprisingly called epubreader, which loads EPUB documents fast and renders them nicely. That said, please be aware that EPUB can't do anything about the fact that the MySQL Reference Manual is huge, so downloading it to a mobile device can take a while. The MySQL 5.1 Manual is currently a whopping 15 MB!]]></description>
			<content:encoded><![CDATA[<p>For a long time, the MySQL Documentation Team has been providing CHM files for most MySQL documentation we publish. Like many other formats, CHM-format docs can be downloaded from <a href="http://dev.mysql.com/doc">http://dev.mysql.com/doc</a>. <b>CHM (Compiled HTML Help)</b> has been the de facto standard help file format on Windows since 1997, but the technology behind it is outdated and has all kinds of quirks. The successor format introduced with Windows Vista is <b>AP Help</b>, but it hasn't taken off in practice so far. So, with CHM being outdated and AP Help spread anything but widely, lots of vendors have started providing documentation on Windows in PDF or HTML format.<br /><br />Building CHM-format documentation is a challenge of its own. I'll not go into details here, so let me just state that it requires a dedicated Windows box (or VM), and while it can be automated using Power Shell commands, there's no way to find out whether or not a CHM file was built correctly, except by manual inspection. This makes it different from all other documentation formats where technical QA is done (successfully) in an automated fashion.<br /><br />With the increasing complexity and size of our documentation (the MySQL 5.1 Manual contains more than 1.6 million words now!), providing CHM has become more and more of a pain, because builds tend to break more often. We've stopped shipping CHM with the MySQL Server on Windows months ago because we simply couldn't guarantee that the help file shipped with the software would work. Also, we're running short on hardware resources, so we'd rather stop wasting the resources we have on building a format that's of limited use, anyway.<br /><br /><b>This is why we'll stop providing CHM for any of the documentation we publish.</b><br /><br />To alleviate potential pains anyone might have with this decision, let me tell you that we've started providing <b>EPUB</b>-format docs. EPUB (see<a href="http://en.wikipedia.org/wiki/EPUB"> http://en.wikipedia.org/wiki/EPUB</a>) is an open standard format for screen readers, mobile or not, and is fairly easy (and not resource-intensive!) to compile. Thanks to Lenz for suggesting to build EPUB!<br /><br />Go to <a href="http://dev.mysql.com/doc">http://dev.mysql.com/doc</a> to grab MySQL documentation in EPUB format. To read EPUB on desktop machines, I use a Firefox add-on, unsurprisingly called <b>epubreader</b>, which loads EPUB documents fast and renders them nicely. That said, please be aware that EPUB can't do anything about the fact that the MySQL Reference Manual is huge, so downloading it to a mobile device can take a while. The MySQL 5.1 Manual is currently a whopping 15 MB!<br /></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25780&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25780&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/mysqlf/entry/farewell_chm_hello_epub/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation of Summary of Part 3 of &quot;Methods for searching errors in SQL application&quot; just published</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/translation_of_summary_of_part1?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=translation-of-summary-of-part-3-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/translation_of_summary_of_part1#comments</comments>
		<pubDate>Wed, 01 Sep 2010 16:15:17 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/translation_of_summary_of_part1</guid>
		<description><![CDATA[Not much new this time: just summary of part 3 published and fixed mistake in chapter 10 (thanks, Shane!).


Summary.


In the third part we discussed methods of application debugging in cases when query plays secondary role in the problem.


I'd like to bring your attention we only discussed most frequent cases while MySQL server has a lot of parameters which of them can affect application. Analyze parameters which you use. One of the methods is run problematic query using MySQL server running with option --no-defaults and examine if results are different for MySQL server run with parameter which you use. If results are different analyze why parameter affects it and solve the problem.


... 


Rest of the chapter is here.]]></description>
			<content:encoded><![CDATA[<p>Not much new this time: just summary of part 3 published and fixed mistake in chapter 10 (thanks, <a href="http://mysqlbugs.blogspot.com">Shane</a>!).</p>


<p><h1 align="left">Summary.</h1></p>


<p>In the third part we discussed methods of application debugging in cases when query plays secondary role in the problem.</p>


<p>I'd like to bring your attention we only discussed most frequent cases while MySQL server has a lot of parameters which of them can affect application. Analyze parameters which you use. One of the methods is run problematic query using MySQL server running with option --no-defaults and examine if results are different for MySQL server run with parameter which you use. If results are different analyze why parameter affects it and solve the problem.</p>


<p><p><a title="full text" href="http://sql-error.microbecal.com/en/part3_concl.html">...</a></p> </p>


<p>Rest of the chapter is <a title="full text" href="http://sql-error.microbecal.com/en/part3_concl.html">here</a>.</p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25740&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25740&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/translation_of_summary_of_part1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation of &quot;Chapter 10. Lost connection to MySQL server during query.&quot; of &quot;Methods for searching errors in SQL application&quot; just published.</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_10_lost?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=translation-of-chapter-10-lost-connection-to-mysql-server-during-query-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_10_lost#comments</comments>
		<pubDate>Wed, 11 Aug 2010 10:06:58 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_10_lost</guid>
		<description><![CDATA[This chapter is about possible reasons of &#34;Lost connection to MySQL server&#34; error not discussed in previous one. 
  
	Chapter 10. Lost connection to MySQL server during query
 
  
You can see error &#34;Lost connection to MySQL server&#34; not only because
too small connect_timeout, but because other reasons too. In this
chapter we discuss these reasons.
 
    
  
$php phpconf2009_4.php 
string(44) &#34;Lost connection to MySQL server during query&#34;
 
  
Most likely error log will show what happened:
 
  ... 
   Rest of the chapter is here 
   ]]></description>
			<content:encoded><![CDATA[<p><p>This chapter is about possible reasons of &quot;Lost connection to MySQL server&quot; error not discussed in previous one.</p> <br/>
  <h1 align="left"><br/>
	Chapter 10. Lost connection to MySQL server during query<br/>
</h1> <br/>
  <p><br/>
You can see error &quot;Lost connection to MySQL server&quot; not only because<br/>
too small connect_timeout, but because other reasons too. In this<br/>
chapter we discuss these reasons.<br/>
</p> <br/>
  <p> </p> <br/>
  <div><code><br/>
$php phpconf2009_4.php <br /><br/>
string(44) &quot;Lost connection to MySQL server during query&quot;<br/>
</code></div> <br/>
  <p><br/>
Most likely error log will show what happened:<br/>
</p> <br/>
  <p><a title="full text" href="http://sql-error.microbecal.com/en/chap10.html">...</a></p> <br/>
  <p> Rest of the chapter is <a title="full text" href="http://sql-error.microbecal.com/en/chap10.html">here</a><br /></p> <br/>
  <p> </p></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25535&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25535&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_10_lost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation of &quot;Chapter 9. Misterious vanishing of the server.&quot; of &quot;Methods for searching errors in SQL application&quot; just published</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_9_misterious?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=translation-of-chapter-9-misterious-vanishing-of-the-server-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_9_misterious#comments</comments>
		<pubDate>Tue, 03 Aug 2010 08:58:54 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_9_misterious</guid>
		<description><![CDATA[In this chapter we discuss timeouts which can lead to &#34;MySQL server has gone away&#34; and &#34;Lost connection to MySQL server&#34; errors. 
  &#160;Extract here is short, because there are a lot of code quotes which I can not properly format here. 
    
  
	Chapter 9. Misterious vanishing of the server.
 
  
Often this looks like:
 
    
  
$php phpconf2009_3.php
string(26) &#34;MySQL server has gone away&#34;
 
  
Code:
 
  ... 
   Rest of the chapter is here]]></description>
			<content:encoded><![CDATA[<p><p>In this chapter we discuss timeouts which can lead to <code>&quot;MySQL server has gone away&quot; and &quot;</code><code>Lost connection to MySQL server&quot; errors.</code></p> <br/>
  <p>&nbsp;Extract here is short, because there are a lot of code quotes which I can not properly format here.</p> <br/>
  <p> </p> <br/>
  <h1 align="left"><br/>
	Chapter 9. Misterious vanishing of the server.<br/>
</h1> <br/>
  <p><br/>
Often this looks like:<br/>
</p> <br/>
  <p> </p> <br/>
  <div><code><br/>
$php phpconf2009_3.php<br /><br/>
string(26) &quot;MySQL server has gone away&quot;<br/>
</code></div> <br/>
  <p><br/>
Code:<br/>
</p> <br/>
  <p><a href="http://sql-error.microbecal.com/en/chap9.html" title="full text">...</a></p> <br/>
  <p> Rest of the chapter is <a href="http://sql-error.microbecal.com/en/chap9.html" title="full text">here</a><br /></p></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25471&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25471&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_9_misterious/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A tale of a bug…</title>
		<link>http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=a-tale-of-a-bug%25e2%2580%25a6</link>
		<comments>http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 00:10:19 +0000</pubDate>
		<dc:creator>Stewart Smith</dc:creator>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MariaDB]]></category>
		<category><![CDATA[archive]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[collaboration]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.flamingspork.com/blog/?p=2083</guid>
		<description><![CDATA[So I sometimes get asked if we funnel back bug reports or patches back to MySQL from Drizzle. Also, MariaDB adds some interest here as they are a lot closer (and indeed compatible with) to MySQL. With Drizzle, we have deviated really quite heavily from the MySQL codebase. There are still some common areas, but they&#8217;re getting rarer (especially to just directly apply a patch).
Back in June 2009, while working on Drizzle at Sun, I found a bug that I knew would affect both. The patch would even directly apply (well&#8230; close, but I made one anyway).
So the typical process of me filing a MySQL bug these days is:

Stewart files bug
In the next window of Sveta being awake, it&#8217;s verified.

This happened within a really short time.
Unfortunately, what happens next isn&#8217;t nearly as awesome.
Namely, nothing. For a year.
So a year later, I filed it in launchpad for MariaDB.
So, MariaDB is gearing up for a release, it&#8217;s a relatively low priority bug (but it does have a working, correct and obvious patch), within 2 months, Monty applied it and improved the error checking around it.
So MariaDB bug 588599 is Fix Committed (June 2nd 2010 &#8211; July 20th 2010), MySQL Bug ﻿﻿45377 is still Verified (July 20th 2009 &#8211; &#8230;.).
(and yes, this tends to be a general pattern I find)
But Mark says he gets things through&#8230; so yay for him.2




		
			Share this on Facebook
		
		
			Tweet This!
		
		
			Share this on del.icio.us
		
		
			Digg this!
		
		
			Post on Google Buzz
		


]]></description>
			<content:encoded><![CDATA[<p>So I sometimes get asked if we funnel back bug reports or patches back to <a href="http://mysql.com">MySQL</a> from <a href="http://drizzle.org">Drizzle</a>. Also, <a href="http://mariadb.org/">MariaDB</a> adds some interest here as they are a lot closer (and indeed compatible with) to MySQL. With <a href="http://drizzle.org">Drizzle</a>, we have deviated really quite heavily from the MySQL codebase. There are still some common areas, but they&#8217;re getting rarer (especially to just directly apply a patch).</p>
<p>Back in June 2009, while working on Drizzle at Sun, I found a bug that I knew would affect both. The patch would even directly apply (well&#8230; close, but I made one anyway).</p>
<p>So the typical process of me filing a MySQL bug these days is:</p>
<ul>
<li>Stewart files bug</li>
<li>In the next window of Sveta being awake, it&#8217;s verified.</li>
</ul>
<p>This happened within a really short time.</p>
<p>Unfortunately, what happens next isn&#8217;t nearly as awesome.</p>
<p>Namely, nothing. For a year.</p>
<p>So a year later, I filed it in launchpad for MariaDB.</p>
<p>So, MariaDB is gearing up for a release, it&#8217;s a relatively low priority bug (but it does have a working, correct and obvious patch), within 2 months, Monty applied it and improved the error checking around it.</p>
<p>So <a href="https://bugs.launchpad.net/maria/+bug/588599">MariaDB bug 588599</a> is Fix Committed (June 2nd 2010 &#8211; July 20th 2010), <a href="http://bugs.mysql.com/bug.php?id=45377">MySQL Bug ﻿﻿45377</a> is still Verified (July 20th 2009 &#8211; &#8230;.).</p>
<p>(and yes, this tends to be a general pattern I find)</p>
<p>But Mark says he gets things through&#8230; so yay for him.2</p>


<div>
<ul>
		<li>
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/&amp;t=A+tale+of+a+bug..." rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li>
			<a href="http://twitter.com/home?status=A+tale+of+a+bug...+-+http://b2l.me/abqvws&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li>
			<a href="http://delicious.com/post?url=http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/&amp;title=A+tale+of+a+bug..." rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li>
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/&amp;title=A+tale+of+a+bug..." rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li>
			<a href="http://www.google.com/buzz/post?url=http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/&amp;imageurl=" rel="nofollow" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
</ul>
<div></div>
</div><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25364&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25364&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://www.flamingspork.com/blog/2010/07/22/a-tale-of-a-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transaltion of &quot;Chapter 8. Large amount of data.&quot; of &quot;Methods for searching errors in SQL application&quot; just published</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_8_large?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=transaltion-of-chapter-8-large-amount-of-data-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_8_large#comments</comments>
		<pubDate>Wed, 21 Jul 2010 09:11:32 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_8_large</guid>
		<description><![CDATA[I started translation of Part 3 &#34;Other cases&#34;. In this part I mostly describe how wrong settings can lead to misterious errors. First chapter in this part about large amount of data. 
  
	Part 3. Other cases.
 
  
	Chapter 8. Large amount of data.
 
  
There are cases when query is just symptom of wrong behavior, but true reason is wrong settings.
 
  
One of the cases is too small max_allowed_packet for data sent. MySQL
server variable max_allowed_packet defines maximum possible amount of
data which MySQL server can receive or send. Amount of
max_allowed_packet is specified in bytes.
 
  
Error usually looks like:
 
    
   
    
$mysql51  test &#60;phpconf2009_1.sql
ERROR 1153 (08S01) at line 33: Got a packet bigger than 'max_allowed_packet' bytes
 
    ...  
    Rest of the chapter is here 
  ]]></description>
			<content:encoded><![CDATA[<p><p>I started translation of Part 3 &quot;Other cases&quot;. In this part I mostly describe how wrong settings can lead to misterious errors. First chapter in this part about large amount of data.<br /></p> <br/>
  <h1 align="left"><br/>
	Part 3. Other cases.<br/>
</h1> <br/>
  <h1 align="left"><br/>
	Chapter 8. Large amount of data.<br/>
</h1> <br/>
  <p><br/>
There are cases when query is just symptom of wrong behavior, but true reason is wrong settings.<br/>
</p> <br/>
  <p><br/>
One of the cases is too small max_allowed_packet for data sent. MySQL<br/>
server variable max_allowed_packet defines maximum possible amount of<br/>
data which MySQL server can receive or send. Amount of<br/>
max_allowed_packet is specified in bytes.<br/>
</p> <br/>
  <p><br/>
Error usually looks like:<br/>
</p> <br/>
  <p> </p> <br/>
  <div> <br/>
    <p><code><br/>
$mysql51  test &lt;phpconf2009_1.sql<br /><br/>
ERROR 1153 (08S01) at line 33: Got a packet bigger than 'max_allowed_packet' bytes<br/>
</code></p> <br/>
    <p><a href="http://sql-error.microbecal.com/en/chap8.html" title="full text">...</a> </p> <br/>
    <p>Rest of the chapter is <a href="http://sql-error.microbecal.com/en/chap8.html" title="full text">here</a><br /></p> <br/>
  </div></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25349&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25349&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/transaltion_of_chapter_8_large/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation of &quot;Chapter 7. Concurrent transactions. &quot; of &quot;Methods for searching errors in SQL application&quot; just published.</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_7_concurrent?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=translation-of-chapter-7-concurrent-transactions-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_7_concurrent#comments</comments>
		<pubDate>Wed, 14 Jul 2010 10:06:50 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_7_concurrent</guid>
		<description><![CDATA[This is short chapter which gives some clue what to do with concurrent transactions. 
  
	Chapter 7. Concurrent transactions.
 
  
Yet another frequent example of similar problem is &#34;Lock wait timeout
exceeded&#34; error while you use InnoDB tables. Most often running query
SHOW ENGINE INNODB STATUS is enough to find the problem, because it
will show last transactions. But output of this command does not
contain information about all queries in the same transaction, but only
about last one. What to do if SHOW ENGINE INNODB STATUS doesn't provide
all information?
 
  ...  
  &#160;Rest of the chapter is here]]></description>
			<content:encoded><![CDATA[<p><p>This is short chapter which gives some clue what to do with concurrent transactions.</p> <br/>
  <h1 align="left"><br/>
	Chapter 7. Concurrent transactions.<br/>
</h1> <br/>
  <p><br/>
Yet another frequent example of similar problem is &quot;Lock wait timeout<br/>
exceeded&quot; error while you use InnoDB tables. Most often running query<br/>
SHOW ENGINE INNODB STATUS is enough to find the problem, because it<br/>
will show last transactions. But output of this command does not<br/>
contain information about all queries in the same transaction, but only<br/>
about last one. What to do if SHOW ENGINE INNODB STATUS doesn't provide<br/>
all information?<br/>
</p> <br/>
  <p><a title="full text" href="http://sql-error.microbecal.com/en/chap7.html">...</a> <br /></p> <br/>
  <p>&nbsp;Rest of the chapter is <a title="full text" href="http://sql-error.microbecal.com/en/chap7.html">here</a><br /></p></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25299&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25299&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_7_concurrent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation of &quot;Chapter 6. Locks and deadlocks.&quot; of &quot;Methods for searching errors in SQL application&quot; just published.</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_6_locks?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=translation-of-chapter-6-locks-and-deadlocks-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_6_locks#comments</comments>
		<pubDate>Wed, 07 Jul 2010 11:55:17 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_6_locks</guid>
		<description><![CDATA[This is new part which contains information about what to do if problem is repeatable only when queries run concurrently. 
    
  
	Chapter 6. Locks and deadlocks.
 
  
In the last part we discussed how to find cause of the problem in case
if it is always repeatable. But there are cases when problem occurs
only under particular circumstances.
 
  
For example, such easy query can run long enough:
 
    
   
    
mysql&#62; select * from t;
+-----+
&#124;&#160;a&#160;&#160;&#160;&#124;
+-----+
&#124;&#160;&#160;&#160;0&#160;&#124;
&#124;&#160;256&#160;&#124;
+-----+
2 rows in set (3 min 18.71 sec)
 
    ... 
    Rest of the chapter is here  
  ]]></description>
			<content:encoded><![CDATA[<p><p>This is new part which contains information about what to do if problem is repeatable only when queries run concurrently.</p> <br/>
  <p> </p> <br/>
  <h1 align="left"><br/>
	Chapter 6. Locks and deadlocks.<br/>
</h1> <br/>
  <p><br/>
In the last part we discussed how to find cause of the problem in case<br/>
if it is always repeatable. But there are cases when problem occurs<br/>
only under particular circumstances.<br/>
</p> <br/>
  <p><br/>
For example, such easy query can run long enough:<br/>
</p> <br/>
  <p> </p> <br/>
  <div> <br/>
    <p><code><br/>
mysql&gt; select * from t;<br /><br/>
+-----+<br /><br/>
|&nbsp;a&nbsp;&nbsp;&nbsp;|<br /><br/>
+-----+<br /><br/>
|&nbsp;&nbsp;&nbsp;0&nbsp;|<br /><br/>
|&nbsp;256&nbsp;|<br /><br/>
+-----+<br /><br/>
2 rows in set (3 min 18.71 sec)<br/>
</code></p> <br/>
    <p><a title="full text" href="http://sql-error.microbecal.com/en/chap6.html">...</a></p> <br/>
    <p>Rest of the chapter is <a title="full text" href="http://sql-error.microbecal.com/en/chap6.html">here </a><br /></p> <br/>
  </div></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25229&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25229&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_6_locks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&quot;Alternate methods for finding problem query.&quot;: chapter 5 of &quot;Methods for searching errors in SQL application&quot; just published</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/alternate_methods_for_finding_problem?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=alternate-methods-for-finding-problem-query-chapter-5-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/alternate_methods_for_finding_problem#comments</comments>
		<pubDate>Wed, 23 Jun 2010 09:37:35 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/alternate_methods_for_finding_problem</guid>
		<description><![CDATA[Translation of chapter 5 which describes alternate methods for searching problem query just published. It starts like: 
  
	Chapter 5. Alternate methods for finding problem query.
 
  
I already wrote about using of general query log requires resources.
Part of the problem can be solved if use new feature of MySQL 5.1:
online logging which allows to turn general query log to on or to off
without stopping the MySQL server.
 
  Unfortunately this doesn't always work: you can have old
version of MySQL server which has not such a feature, general query log
can contain very large amount of information, so you can just miss the
problem in thousands of correct queries, you can have some other own
reason.
 
  
But what to do if you can not use general query log?
 
  One of the methods is write log files using your application.
Add a code which will write queries which your application sends to
MySQL to the log file.
 
  With this method you can tune how and what to write to the log
file. Would be good if you will write return value and error messages
in the same log file.
 
  
Method #9: tune your application in such a way so it will write queries to log files itself.
 
  
Yet another method is using proxy which will get queries and write them to the file.
 
  One of most preffered variants is MySQL Proxy, because this is
scriptable proxy made for working with MySQL server. It uses MySQL
client-server protocol. You can write programs for MySQL Proxy using
Lua programming language.
 
  
Below you can see example how to write general query log using MySQL Proxy:
 
  ... 
  &#160;Rest of the chapter is here 
   ]]></description>
			<content:encoded><![CDATA[<p><p>Translation of chapter 5 which describes alternate methods for searching problem query just published. It starts like:</p> <br/>
  <h1 align="left"><br/>
	Chapter 5. Alternate methods for finding problem query.<br/>
</h1> <br/>
  <p><br/>
I already wrote about using of general query log requires resources.<br/>
Part of the problem can be solved if use new feature of MySQL 5.1:<br/>
online logging which allows to turn general query log to on or to off<br/>
without stopping the MySQL server.<br/>
</p> <br/>
  <p>Unfortunately this doesn't always work: you can have old<br/>
version of MySQL server which has not such a feature, general query log<br/>
can contain very large amount of information, so you can just miss the<br/>
problem in thousands of correct queries, you can have some other own<br/>
reason.<br/>
</p> <br/>
  <p><br/>
But what to do if you can not use general query log?<br/>
</p> <br/>
  <p>One of the methods is write log files using your application.<br/>
Add a code which will write queries which your application sends to<br/>
MySQL to the log file.<br/>
</p> <br/>
  <p>With this method you can tune how and what to write to the log<br/>
file. Would be good if you will write return value and error messages<br/>
in the same log file.<br/>
</p> <br/>
  <p><b><br/>
Method #9: tune your application in such a way so it will write queries to log files itself.<br/>
</b></p> <br/>
  <p><br/>
Yet another method is using proxy which will get queries and write them to the file.<br/>
</p> <br/>
  <p>One of most preffered variants is MySQL Proxy, because this is<br/>
scriptable proxy made for working with MySQL server. It uses MySQL<br/>
client-server protocol. You can write programs for MySQL Proxy using<br/>
Lua programming language.<br/>
</p> <br/>
  <p><br/>
Below you can see example how to write general query log using MySQL Proxy:<br/>
</p> <br/>
  <p><a href="http://sql-error.microbecal.com/en/chap5.html" title="Chapter 5 full text">...</a></p> <br/>
  <p>&nbsp;Rest of the chapter is <a href="http://sql-error.microbecal.com/en/chap5.html" title="Chapter 5 full text">here</a><br /></p> <br/>
  <p> </p></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25087&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25087&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/alternate_methods_for_finding_problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation of Chapter 4. Miscellaneous. of &quot;Methods for searching errors in SQL application&quot; just published</title>
		<link>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_4_miscellaneous?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=translation-of-chapter-4-miscellaneous-of-methods-for-searching-errors-in-sql-application-just-published</link>
		<comments>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_4_miscellaneous#comments</comments>
		<pubDate>Wed, 16 Jun 2010 08:51:05 +0000</pubDate>
		<dc:creator>Sveta Smirnova</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_4_miscellaneous</guid>
		<description><![CDATA[This chapter starts as: 
  
	Chapter 4. Miscellaneous.
 
  
There are cases when wrong output is just symptom of wrong input made before.
 
  
For example, you start to receive wrong data at particular step of the
scenario. After analysis of the SELECT query (or queries) is clear what
queries are correct and return exactly same data which exists in the
table (or tables).
 
  
This means wrong data was inserted at the earlier step.
 
  
How to know when it happened?
 
  Start from the step of the scenario which exists just before
step which does output, check every query as was described in earlier
chapters. If everything works correctly, examine earlier step, repeat
until you find the error.
 
  
We can examine example with list from Chapter 1 as example of such behavior.
 
  
Lets see at output one more time.
 
  ...  
  Really I could put here longer quotes, but I don't like how this interface prints code. So you can find rest of the chapter here. 
  Comments and translation corrections are welcome.]]></description>
			<content:encoded><![CDATA[<p><p>This chapter starts as:</p> <br/>
  <h1 align="left"><br/>
	Chapter 4. Miscellaneous.<br/>
</h1> <br/>
  <p><br/>
There are cases when wrong output is just symptom of wrong input made before.<br/>
</p> <br/>
  <p><br/>
For example, you start to receive wrong data at particular step of the<br/>
scenario. After analysis of the SELECT query (or queries) is clear what<br/>
queries are correct and return exactly same data which exists in the<br/>
table (or tables).<br/>
</p> <br/>
  <p><br/>
This means wrong data was inserted at the earlier step.<br/>
</p> <br/>
  <p><br/>
How to know when it happened?<br/>
</p> <br/>
  <p>Start from the step of the scenario which exists just before<br/>
step which does output, check every query as was described in earlier<br/>
chapters. If everything works correctly, examine earlier step, repeat<br/>
until you find the error.<br/>
</p> <br/>
  <p><br/>
We can examine example with list from Chapter 1 as example of such behavior.<br/>
</p> <br/>
  <p><br/>
Lets see at output one more time.<br/>
</p> <br/>
  <p><a title="Chapter 4 full text" href="http://sql-error.microbecal.com/en/chap4.html">...</a> <br /></p> <br/>
  <p>Really I could put here longer quotes, but I don't like how this interface prints code. So you can find rest of the chapter <a title="Chapter 4 full text" href="http://sql-error.microbecal.com/en/chap4.html">here</a>.</p> <br/>
  <p>Comments and translation corrections are welcome.<br /></p></p><br/>PlanetMySQL Voting:
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25039&vote=1&apivote=1">Vote UP</a> /
	 <a href="http://planet.mysql.com/entry/vote/?entry_id=25039&vote=-1&apivote=1">Vote DOWN</a>]]></content:encoded>
			<wfw:commentRss>http://blogs.sun.com/svetasmirnova/entry/translation_of_chapter_4_miscellaneous/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
