Will be reported MySQL server has gone away error because the file is too large to import database;
1.查看 show global variables like 'max_allowed_packet';
2. Modify the value of the size of 16M set global max_allowed_packet = 1024 * 1024 * 16;
But after restarting the mysql, set on the failure, to once and for all, you need to modify the configuration file
/etc/my.cnf the configuration changes:
the max_allowed_packet = 16M