MySQL server has gone away (error 2006)

To resolve this issue you need to increase the wait_timeout in mysql configuration file

Set the below parameter in /etc/my.conf and restart Mysql

In /etc/my.cnf, set wait_timeout to at least 800 seconds