MySQL server has gone away

Error :MySQL server has gone away
Solution: If you get MySQL server has gone away when using MySQL ODBC driver then you need to add the following variables into my.cnf file1
1) Open /etc/my.cnf file and add the following variable

max_allowed_packet= 64M
wait_timeout= 6000

2) Restart Mysql service

/etc/init.d/mysqld restart

 

Leave a Comment