W3docs

MySQL server has gone away - in exactly 60 seconds

The "MySQL server has gone away" error message typically indicates that the connection to the MySQL server was lost.

The "MySQL server has gone away" error message typically indicates that the connection to the MySQL server was lost.

This error message can occur for a number of reasons, such as:

  1. The MySQL server process has terminated unexpectedly.
  2. The connection to the MySQL server was lost due to a network issue.
  3. The MySQL server connection timeout period (default is 8 hours) has been exceeded.
  4. The max_allowed_packet variable in the MySQL server configuration is set to a value that is too low.

Regarding the details you've provided, "gone away in exactly 60 seconds": MySQL's default wait_timeout is 28,800 seconds (8 hours), so an exact 60-second timeout usually originates from an application connection pool, web server, or load balancer rather than the database itself. To verify the server's actual timeout settings, run:

SHOW VARIABLES LIKE 'wait_timeout';

If the timeout is indeed too low, you can adjust it temporarily with:

SET GLOBAL wait_timeout = 28800;

For persistent changes, update wait_timeout in your my.cnf or my.ini configuration file and restart the MySQL service.