An error occurred while trying to upload a database dump through the mysqldump utility:
ERROR 2006 (HY000) at line 40283: MySQL server has gone away
You can fix it as follows: open the my.cnf file (in Linux, as a rule ,/etc/my.cnf, in FreeBSD -/etc/my.cnf or/usr/local/etc/my.cnf), and add the following lines to the [mysqld] section
wait _ timeout = 6000 max_allowed_packet = 1G, restart MySQL according to the OS that you have and try to fill the dump again.
[email protected]:/var/www/rg# mysql -p huid < 2017-11-02_04-35-42.sql Enter password: [email protected]:/var/www/#
Dump uploaded successfully