Tag: mysql reconnect
-
Connection timeout with MySQL database.
MySQL disconnects automatically after some time. If you experience MySQL timeouts, it could be due to heavy or very long MySQL queries. You can try using mysql_reconnect command before every query, and it should be fine. MySQL server timeout can occur for many reasons but most commonly it is caused by either an application bug, a network timeout issue, or…