Search Our Database

How to fix MySQL error “Mysql has gone away”

Last updated on |

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

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

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

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