<?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>Tech Blog &#187; closed connection</title>
	<atom:link href="http://informationideas.com/news/tag/closed-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://informationideas.com/news</link>
	<description>Using technology to help your business</description>
	<lastBuildDate>Thu, 05 Aug 2010 22:53:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Mysql server has gone away</title>
		<link>http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/</link>
		<comments>http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/#comments</comments>
		<pubDate>Sat, 03 May 2008 00:18:51 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[closed connection]]></category>
		<category><![CDATA[database configuration]]></category>
		<category><![CDATA[mysql error]]></category>

		<guid isPermaLink="false">http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/</guid>
		<description><![CDATA[I have a spider crawling the web written in PHP running constantly to insert and update data in a Mysql database.Â  Today, it kept stopping on a records with the error message, &#8220;Mysql server has gone away&#8221;.Â  It certainly did not time out as just starting the process again would result in this message immediately.Â  [...]]]></description>
			<content:encoded><![CDATA[<p>I have a spider crawling the web written in PHP running constantly to insert and update data in a Mysql database.Â  Today, it kept stopping on a records with the error message, &#8220;Mysql server has gone away&#8221;.Â  It certainly did not time out as just starting the process again would result in this message immediately.Â  The script did not close out the connection to the DB as it had worked just fine for over a year.</p>
<p>Finally, I found that the problem was max_allowed_packet setting in my.cnf was too small.Â  It was set to 2MB and when Mysql receives a query larger than that, it assumes that something must have gone wrong and closes the connection.Â  I increased that parameter to 4MB and everything is working fine now.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-knowledge">
<ul class="socials">
		<li class="shr-comfeed">
			<a href="http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/&amp;title=Mysql+server+has+gone+away" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/&amp;title=Mysql+server+has+gone+away" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/&amp;t=Mysql+server+has+gone+away" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-googlebuzz">
			<a href="http://www.google.com/buzz/post?url=http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/&amp;title=Mysql+server+has+gone+away&amp;summary=%0D%0AI%20have%20a%20spider%20crawling%20the%20web%20written%20in%20PHP%20running%20constantly%20to%20insert%20and%20update%20data%20in%20a%20Mysql%20database.%C3%82%C2%A0%20Today%2C%20it%20kept%20stopping%20on%20a%20records%20with%20the%20error%20message%2C%20%22Mysql%20server%20has%20gone%20away%22.%C3%82%C2%A0%20It%20certainly%20did%20not%20time%20out%20as%20just%20starting%20the%20process%20again%20would%20result%20in%20this&amp;source=Tech Blog" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-technorati">
			<a href="http://technorati.com/faves?add=http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/" rel="nofollow" class="external" title="Share this on Technorati">Share this on Technorati</a>
		</li>
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=Mysql+server+has+gone+away+-+http://b2l.me/acrmbq&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://informationideas.com/news/2008/05/02/mysql-server-has-gone-away/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
