Search our database

How to fix MySQL error “Mysql has gone away”

Sometime you may encounter this error in your application or MySQL error log.

In most cases, the increasing of max_allowed_packet resolves the issue.

The max_allowed_packet value can be increased in MySQL configuration file (my.cnf/my.ini).

In order for changes to take effect the MySql service should be restarted.