<?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>Comments on: MySQL wait_timeout setting</title>
	<atom:link href="http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/feed/" rel="self" type="application/rss+xml" />
	<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/</link>
	<description>Enterprise level solutions, LAMP, Linux, Apache, MySQL, PHP, Perl, Windows, Cache, Optimization</description>
	<lastBuildDate>Mon, 16 Apr 2012 22:54:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Chris DePuy</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-966</link>
		<dc:creator>Chris DePuy</dc:creator>
		<pubDate>Wed, 20 Oct 2010 14:43:12 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-966</guid>
		<description>At a dos prompt, type:
C:\&gt;mysql --verbose --help

Then look for 
...i-am-a-dummy                      FALSE
connect_timeout                   0
max_allowed_packet                16777216
...

Then, at mysql prompt

mysql&gt; set GLOBAL connect_timeout=259200;
Query OK, 0 rows affected (0.03 sec)</description>
		<content:encoded><![CDATA[<p>At a dos prompt, type:<br />
C:\&gt;mysql &#8211;verbose &#8211;help</p>
<p>Then look for<br />
&#8230;i-am-a-dummy                      FALSE<br />
connect_timeout                   0<br />
max_allowed_packet                16777216<br />
&#8230;</p>
<p>Then, at mysql prompt</p>
<p>mysql&gt; set GLOBAL connect_timeout=259200;<br />
Query OK, 0 rows affected (0.03 sec)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: prabu</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-895</link>
		<dc:creator>prabu</dc:creator>
		<pubDate>Sat, 07 Nov 2009 10:21:24 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-895</guid>
		<description>Hi..
If you set the property value wait_timeout as 30 it seems your web application ll going to met MySQLNonTransientConnectionException. 

In my web application met this problem while my setup wait_timeout as 30. When it sets to default variable 8 hours which is 28800 seconds its working fine.

i m using c3p0 connection pooling with hibernet in JAVA. Here what happends means the connections goign to kill every 30 seconds which is sleeping state but it live.

So its major problem keep aware with this time out variable on mysql server.

Hope this information usefull for all. :)</description>
		<content:encoded><![CDATA[<p>Hi..<br />
If you set the property value wait_timeout as 30 it seems your web application ll going to met MySQLNonTransientConnectionException. </p>
<p>In my web application met this problem while my setup wait_timeout as 30. When it sets to default variable 8 hours which is 28800 seconds its working fine.</p>
<p>i m using c3p0 connection pooling with hibernet in JAVA. Here what happends means the connections goign to kill every 30 seconds which is sleeping state but it live.</p>
<p>So its major problem keep aware with this time out variable on mysql server.</p>
<p>Hope this information usefull for all. <img src='http://crazytoon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Web Services &#8212; Troubleshooting Sleeping Processes in MySQL</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-767</link>
		<dc:creator>Web Services &#8212; Troubleshooting Sleeping Processes in MySQL</dc:creator>
		<pubDate>Thu, 11 Sep 2008 14:18:49 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-767</guid>
		<description>[...] MySQL wait_timeout setting [...]</description>
		<content:encoded><![CDATA[<p>[...] MySQL wait_timeout setting [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Mikeness</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-724</link>
		<dc:creator>The Mikeness</dc:creator>
		<pubDate>Tue, 24 Jun 2008 21:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-724</guid>
		<description>The Microsoft way to solve this problem is to increase the max connections.

Nah but seriously tho, some mysql_close() calls would be in order, if you are having problems i doubt its one script thats making tons of connections its probably just other connections are being made in other highly used scripts and are not getting closed after. If youre using PHP for example and objects, you can create a destructor like __destruct(){$this-&gt;link-&gt;close();} to close it at the end of execution because when the object is destroyed it closes the connection then.</description>
		<content:encoded><![CDATA[<p>The Microsoft way to solve this problem is to increase the max connections.</p>
<p>Nah but seriously tho, some mysql_close() calls would be in order, if you are having problems i doubt its one script thats making tons of connections its probably just other connections are being made in other highly used scripts and are not getting closed after. If youre using PHP for example and objects, you can create a destructor like __destruct(){$this-&gt;link-&gt;close();} to close it at the end of execution because when the object is destroyed it closes the connection then.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shopping Details</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-595</link>
		<dc:creator>Shopping Details</dc:creator>
		<pubDate>Tue, 05 Feb 2008 10:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-595</guid>
		<description>We got the &quot;too many connection&quot; error in our site. we were approached to our server peoples. they did some of the correction in mysql system variable (wait_timeout set to 28800, interactive_timeout set to 28800) and restart the mysql server. Our problem solved. I think this will help you sort your problem.</description>
		<content:encoded><![CDATA[<p>We got the &#8220;too many connection&#8221; error in our site. we were approached to our server peoples. they did some of the correction in mysql system variable (wait_timeout set to 28800, interactive_timeout set to 28800) and restart the mysql server. Our problem solved. I think this will help you sort your problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maghiel</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-268</link>
		<dc:creator>maghiel</dc:creator>
		<pubDate>Tue, 31 Jul 2007 12:15:30 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-268</guid>
		<description>When a mysql process is in SLEEP state, it could indicate the process is waiting for another, long query to finish.

In your case, the query selecting rows is probably taking more than 30 seconds, your timeout setting kills the process, so the delete query is not executed anymore.</description>
		<content:encoded><![CDATA[<p>When a mysql process is in SLEEP state, it could indicate the process is waiting for another, long query to finish.</p>
<p>In your case, the query selecting rows is probably taking more than 30 seconds, your timeout setting kills the process, so the delete query is not executed anymore.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/comment-page-1/#comment-62</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 14 Mar 2007 19:44:22 +0000</pubDate>
		<guid isPermaLink="false">http://crazytoon.com/2007/02/20/mysql-wait_timeout-setting/#comment-62</guid>
		<description>When you remove the wait_timeout, the timeout defaults to 28800 or 8 hours</description>
		<content:encoded><![CDATA[<p>When you remove the wait_timeout, the timeout defaults to 28800 or 8 hours</p>
]]></content:encoded>
	</item>
</channel>
</rss>

