Thursday, April 7, 2011

SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

This is very critical error found  in MySQL. This error originate when you are dealt with huge records. There are various unanswered forum you will found when you Google that problem. The reason behind this crash is packet size. By default, MySQL configuration max_allowed_packet is set it to 16M. This settings may introduce this exception in your website..

To resolve that problem you needs to increase max_allowed_packet variable in MySQL. Add following line in my.ini

Save the file and restart MySQL service. Now onward you will never get that kind exception in your open source / website.