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.