General error: 2006 MySQL server has gone away

11 years ago, August 6, 2013
Reading time: 1 mins

The error "General error: 2006 MySQL server has gone away." can occur when you are developing a site on a cms or framework like drupal, wordpress, magento, etc. which can have large queries.

Solution: Increasing max_allowed_packet size in my.ini may fix the issue. At least it fixed mine.

Open your my.ini file which should be inside mysql/bin directory,

search for "max_allowed_packet"

Change the size to 100M or so, max_allowed_packet=100M and

restart MySQL

It worked for me hope works for you too.

Previous
GET INDEX OF THE ARRAY BY PROPERTY OF ITS ELEMENT OBJECT!
Next
Kathmandu Kora Cycling Challenge 2013
© 2024 Anil Maharjan