ERROR 2006 (HY000) at line 348: MySQL server has gone away
When i try to restore a MySQL database, i get following error.
1 2 3 |
[root@server2 ~]# mysql sok_wp < /var/www/sok_wp.sql ERROR 2006 (HY000) at line 348: MySQL server has gone away [root@server2 ~]# |
To fix the error, edit file
1 |
/etc/my.cnf.d/my.cnf |
Add
1 |
max_allowed_packet=64M |
Restart MySQL
1 |
service mysql restart |
if using mariadb, run
1 |
service mariadb restart |