MySQL server has gone away – in exactly 60 seconds

The php option mysql.connect_timeout is the reason for this. It’s not only used for connect timeout, but as well as waiting for the first answer from the server. You can increase it like this:

ini_set('mysql.connect_timeout', 300);
ini_set('default_socket_timeout', 300); 

Leave a Comment