Question: mysql has gone away error?
Answer: The most common reason for the MySQL server has gone away error is that the server timed out and closed the connection. ... By default, the server closes the connection after eight hours if nothing has happened. You can change the time limit by setting the wait_timeout variable when you start mysqld.