<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>How to fix "MySQL server has gone away" (error 2006)</title> <atom:link href="http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html/feed" rel="self" type="application/rss+xml" /><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 08 Feb 2012 09:31:46 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-138565</link> <dc:creator>grosir jam tangan</dc:creator> <pubDate>Sat, 07 Jan 2012 22:29:54 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-138565</guid> <description>thx for the information, it&#039;s work well to my db ^^</description> <content:encoded><![CDATA[<p>thx for the information, it&#8217;s work well to my db ^^</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-137209</link> <dc:creator>RipleySW2</dc:creator> <pubDate>Wed, 23 Nov 2011 13:21:46 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-137209</guid> <description>I&#039;m running a wamp server 1.7.2
...having error 2006 server has gone away when inserting large files into my database (nothing was inserted at all).
So, simply stop the wamp  server services, edit the my.ini file thru the wamp manager icon.
The 2 lines :
max_allowed_packet= 64M
wait_timeout= 6000
were added at the end of the file (c:wampmysqlmy.ini)
Restart Wamp Server Services
And it works ! Thanks a lot !</description> <content:encoded><![CDATA[<p>I&#8217;m running a wamp server 1.7.2</p><p>&#8230;having error 2006 server has gone away when inserting large files into my database (nothing was inserted at all).</p><p>So, simply stop the wamp  server services, edit the my.ini file thru the wamp manager icon.</p><p>The 2 lines :</p><p>max_allowed_packet= 64M<br
/> wait_timeout= 6000</p><p>were added at the end of the file (c:wampmysqlmy.ini)</p><p>Restart Wamp Server Services</p><p>And it works ! Thanks a lot !</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-136247</link> <dc:creator>massa</dc:creator> <pubDate>Wed, 21 Sep 2011 17:25:57 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-136247</guid> <description>If using PHP to feed a database and getting this MySQL error, instead of modifying my.ini, try to package your data in smaller strings and put them in an array.
Then, insert one pack at a time:
&lt;code&gt;
foreach ($pack_array as $pack) {
if ($pack != &quot;&quot;) {
$query = &quot;INSERT INTO mytable VALUES&quot; . $pack;
$result = mysql_query($query);
if (!$result) die (&quot;Database access failed: &quot; . mysql_error());
}
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>If using PHP to feed a database and getting this MySQL error, instead of modifying my.ini, try to package your data in smaller strings and put them in an array.<br
/> Then, insert one pack at a time:<br
/> <code><br
/> foreach ($pack_array as $pack) {<br
/> if ($pack != "") {<br
/> $query = "INSERT INTO mytable VALUES" . $pack;<br
/> $result = mysql_query($query);<br
/> if (!$result) die ("Database access failed: " . mysql_error());<br
/> }<br
/> }<br
/> </code></p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-135664</link> <dc:creator>Bogdan</dc:creator> <pubDate>Mon, 25 Jul 2011 10:04:17 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-135664</guid> <description>my.ini is only available to server administrators; on a shared hosting, you normally would not have access to that file.</description> <content:encoded><![CDATA[<p>my.ini is only available to server administrators; on a shared hosting, you normally would not have access to that file.</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-135661</link> <dc:creator>chetan</dc:creator> <pubDate>Mon, 25 Jul 2011 08:12:30 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-135661</guid> <description>Am using godaddy hosting, where can i locate my.ini , there&#039;s only php.ini file
please help!</description> <content:encoded><![CDATA[<p>Am using godaddy hosting, where can i locate my.ini , there&#8217;s only php.ini file<br
/> please help!</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-135257</link> <dc:creator>Igor Zemliansky</dc:creator> <pubDate>Thu, 16 Jun 2011 07:27:12 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-135257</guid> <description>Thanks for this advices! For me personally setting of max_allowed_packet = 64M helped.</description> <content:encoded><![CDATA[<p>Thanks for this advices! For me personally setting of max_allowed_packet = 64M helped.</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-135086</link> <dc:creator>Johnnytest</dc:creator> <pubDate>Tue, 24 May 2011 15:32:13 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-135086</guid> <description>Rjb&#039;s Solution implemented on large data sets is SLOW!!</description> <content:encoded><![CDATA[<p>Rjb&#8217;s Solution implemented on large data sets is SLOW!!</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-134610</link> <dc:creator>mckowell</dc:creator> <pubDate>Wed, 23 Mar 2011 14:04:48 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-134610</guid> <description>GRACIAS !!!</description> <content:encoded><![CDATA[<p>GRACIAS !!!</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-134595</link> <dc:creator>registry cleaner</dc:creator> <pubDate>Thu, 17 Mar 2011 06:04:18 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-134595</guid> <description>GENERAL SPECIFICATIONS:
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 384M
max_allowed_packet = 64M
table_cache = 4096
sort_buffer_size = 2M
read_buffer_size = 2M
read_rnd_buffer_size = 64M
myisam_sort_buffer_size = 64M
thread_cache_size = 8
query_cache_size = 32M
INNODB SPECIFIC:
innodb_buffer_pool_size = 384M
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 10M
innodb_log_buffer_size = 64M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 180</description> <content:encoded><![CDATA[<p>GENERAL SPECIFICATIONS:<br
/> [mysqld]<br
/> port = 3306<br
/> socket = /tmp/mysql.sock<br
/> skip-locking<br
/> key_buffer = 384M<br
/> max_allowed_packet = 64M<br
/> table_cache = 4096<br
/> sort_buffer_size = 2M<br
/> read_buffer_size = 2M<br
/> read_rnd_buffer_size = 64M<br
/> myisam_sort_buffer_size = 64M<br
/> thread_cache_size = 8<br
/> query_cache_size = 32M<br
/> INNODB SPECIFIC:<br
/> innodb_buffer_pool_size = 384M<br
/> innodb_additional_mem_pool_size = 20M<br
/> innodb_log_file_size = 10M<br
/> innodb_log_buffer_size = 64M<br
/> innodb_flush_log_at_trx_commit = 1<br
/> innodb_lock_wait_timeout = 180</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-134584</link> <dc:creator>shahid</dc:creator> <pubDate>Tue, 08 Mar 2011 04:26:31 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-134584</guid> <description>Thanks ,it really work for me, i just change the max_allowed_packet and my db is back , thanks for good information.</description> <content:encoded><![CDATA[<p>Thanks ,it really work for me, i just change the max_allowed_packet and my db is back , thanks for good information.</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-128020</link> <dc:creator>Rosen Karamanov</dc:creator> <pubDate>Sun, 02 Jan 2011 21:03:24 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-128020</guid> <description>It worked!
The file was my.ini in mysql\bin probably, because the version is another.
Thank you very much for this guide!!</description> <content:encoded><![CDATA[<p>It worked!<br
/> The file was my.ini in mysql\bin probably, because the version is another.<br
/> Thank you very much for this guide!!</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-127231</link> <dc:creator>Raja</dc:creator> <pubDate>Wed, 29 Dec 2010 02:23:00 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-127231</guid> <description>max_allowed_packet= 64M
wait_timeout= 6000
solution worked for me as well - thanks a lot
in my local wamp installation these were not in the config files - so just opening the file and going through did not help
Thanks for the info</description> <content:encoded><![CDATA[<p>max_allowed_packet= 64M<br
/> wait_timeout= 6000</p><p>solution worked for me as well &#8211; thanks a lot</p><p>in my local wamp installation these were not in the config files &#8211; so just opening the file and going through did not help</p><p>Thanks for the info</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-125108</link> <dc:creator>suhu</dc:creator> <pubDate>Tue, 14 Dec 2010 10:57:31 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-125108</guid> <description>you&#039;re welcome
http://thesuhu.wordpress.com/</description> <content:encoded><![CDATA[<p>you&#8217;re welcome</p><p><a
href="http://thesuhu.wordpress.com/" rel="nofollow">http://thesuhu.wordpress.com/</a></p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-125095</link> <dc:creator>sandy</dc:creator> <pubDate>Tue, 14 Dec 2010 09:10:26 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-125095</guid> <description>Thanks Suhu,
your solution worked for me as well...
added
max_allowed_packet= 64M
wait_timeout= 6000
to my.ini file and it worked</description> <content:encoded><![CDATA[<p>Thanks Suhu,<br
/> your solution worked for me as well&#8230;<br
/> added</p><p>max_allowed_packet= 64M<br
/> wait_timeout= 6000</p><p>to my.ini file and it worked</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-124153</link> <dc:creator>2006 mysql server has gone away &#124; Shopping Cart Software Solutions</dc:creator> <pubDate>Fri, 10 Dec 2010 00:10:51 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-124153</guid> <description>[...] reference: Workaround for WordPress database error How to fix “MySQL server has gone away” (error 2006)   [...]</description> <content:encoded><![CDATA[<p>[...] reference: Workaround for WordPress database error How to fix “MySQL server has gone away” (error 2006)   [...]</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-120249</link> <dc:creator>Global Adventure Trekking</dc:creator> <pubDate>Wed, 10 Nov 2010 07:40:48 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-120249</guid> <description>Thanks for this mysql information.</description> <content:encoded><![CDATA[<p>Thanks for this mysql information.</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-118638</link> <dc:creator>Peter Schuitemaker</dc:creator> <pubDate>Tue, 26 Oct 2010 09:16:21 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-118638</guid> <description>Thanx people and Suhu in particular:
max_allowed_packet= 64M
wait_timeout= 6000
my.ini
also worked for me!</description> <content:encoded><![CDATA[<p>Thanx people and Suhu in particular:<br
/> max_allowed_packet= 64M<br
/> wait_timeout= 6000<br
/> my.ini<br
/> also worked for me!</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-110054</link> <dc:creator>suhu</dc:creator> <pubDate>Tue, 10 Aug 2010 02:55:38 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-110054</guid> <description>thanks a lot, it solve my problem
when i insert 37306 record, i got error 2006
then i edit my.ini and add line
max_allowed_packet= 64M
wait_timeout= 6000
and finaly i got no error and succes insert the record
sorry i&#039;m an indonesian, my english is too bad</description> <content:encoded><![CDATA[<p>thanks a lot, it solve my problem<br
/> when i insert 37306 record, i got error 2006<br
/> then i edit my.ini and add line</p><p>max_allowed_packet= 64M<br
/> wait_timeout= 6000</p><p>and finaly i got no error and succes insert the record</p><p>sorry i&#8217;m an indonesian, my english is too bad</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-109325</link> <dc:creator>Andrew</dc:creator> <pubDate>Sat, 31 Jul 2010 09:24:07 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-109325</guid> <description>Your info was really useful! There are a lot of time need to wait in my site for answer for search query, and this error was a real problem! Thanx.</description> <content:encoded><![CDATA[<p>Your info was really useful! There are a lot of time need to wait in my site for answer for search query, and this error was a real problem! Thanx.</p> ]]></content:encoded> </item> <item><title>How to fix "MySQL server has gone away" (error 2006)</title><link>http://bogdan.org.ua/2008/12/25/how-to-fix-mysql-server-has-gone-away-error-2006.html#comment-105592</link> <dc:creator>wingnut</dc:creator> <pubDate>Tue, 04 May 2010 01:19:57 +0000</pubDate> <guid
isPermaLink="false">http://bogdan.org.ua/?p=464#comment-105592</guid> <description>THANK YOU.  I never would have even tried that little check box.  Not even after reading this post.  Now it makes sence.  Thank you again.</description> <content:encoded><![CDATA[<p>THANK YOU.  I never would have even tried that little check box.  Not even after reading this post.  Now it makes sence.  Thank you again.</p> ]]></content:encoded> </item> </channel> </rss>
