Sometimes you find a condition where your database connection (MySQL) is time out because of your queries are spending too much time. This is a hint on how you increase your MySQL time out configuration.
First you query your default connection timeout.
1
|
SHOW VARIABLES LIKE 'connect_timeout' ; |
Next is updated it to 60 seconds.
1
|
SET GLOBAL connect_timeout=60; |