Drupal get “Warning: MySQL server has gone away”

If you got this error, this article will save you:


Basically it is say the MySQL out of resources. Modify the MySQL configuration as following:

In Windows this file is located by default at C:\Program Files\MySQL\MySQL Server X.Y\my.ini. In Linux this file is located at /etc/my.cnf to set global options, or /usr/local/var/mysql-data-dir/my.cnf to set server-specific options.

Important: Remember to keep backup files before you do anything! You will also have to reload the MySQL service after making changes to these configuration files.

Leave a Reply