Please refer to the following article to change the MySQL timeout error.
- Log in to your server root or sudo user using Secure Shell.
- Open the MySQL configuration file my.cnf with your favorite editor.
$ sudo vi /etc/my.cnf
- Find the timeout configuration in my.cnf and change the required setting.
wait_timeout = 2880
interactive_timeout = 2880
- Save and close your my.cnf file.
- Restart your MySQL service to apply your changes.
$ sudo /etc/init.d/mysql restart