You may come across the error "MySql Database has gone away". I came across this error while restoring the database .
All you need to do under this situation is add max_allowed_packet parameter to /etc/my.cnf file and that will do the trick for you -
[root@xyz]# cat /etc/my.cnf
[mysqld]
max_allowed_packet=300M
That's it!
[mysqld]
max_allowed_packet=300M
That's it!