Come risolvere errore "MySQL server has gone away"

Increase wait_timeout and max_allowed_packet

Lanciare la query per ottenere il valore corrente:

SELECT @@wait_timeout, @@max_allowed_packet;

Aprire il file my.cnf e modificare i parametri:

wait_timeout=28800;
max_allowed_packet=107374182

Riavviare il server di mysql e controllare con la query sopra se il valore é stato modificato.

Sources

https://tableplus.com/blog/2018/11/mysql-server-has-gone-away-solved.html

Last updated