Tagged: error-2006-hy000

MySQL: ERROR 2006 (HY000) at line: ### MySQL server has gone away

- by admin

In case of MySQL error 2006 (HY000) at line: ### MySQL server has gone away which may occur while restoring a big DB dump just add (or increase, if exists) max_allowed_packet parameter of MySQL config (usually in /etc/my.cnf).

For example:
[mysqld]
max_allowed_packet=128M

And do not forget to restart MySQL server :-)

« All tags