ebchost Posted June 15, 2011 Share Posted June 15, 2011 Why this? How to fixed? Quote Link to comment https://forums.phpfreaks.com/topic/239483-mysql-server-has-gone-away/ Share on other sites More sharing options...
DarkKnight2011 Posted June 16, 2011 Share Posted June 16, 2011 This should help solve the issue... http://dev.mysql.com/doc/refman/5.0/en/gone-away.html Or at least point you on the right path Quote Link to comment https://forums.phpfreaks.com/topic/239483-mysql-server-has-gone-away/#findComment-1230433 Share on other sites More sharing options...
whit3fir3 Posted June 17, 2011 Share Posted June 17, 2011 Generally you only see that message when the MySQL server disconnects because the connection timeout has been exceeded. In your my.ini set the wait_timeout to something greater that what it is currently to make the change permanent. If you want to make the change with out restarting MySQL you can execute the following: set global wait_timeout=300; The value of 300 is in second so the MySQL server would not disconnect from a connection until 5 minutes had passed. Be careful what you set this value to because if you have your max_connection set too low it will cause connection to stack up and not be released. Thanks, whit3fir3 Quote Link to comment https://forums.phpfreaks.com/topic/239483-mysql-server-has-gone-away/#findComment-1231108 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.