Jump to content

MySQL server has gone away


ebchost

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.