Importing SQL today always prompts for errors
The code is as follows:
ERROR 2013 (HY000): Lost connection to MySQL server during query
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect ...
ERROR 2002 (HY000): Can ' t connect to the local MySQL server through socket '/var/lib/mysql/mysql.sock ' (111)
ERROR:
Can ' t connect to the server
Tried on the internet for a long time, various modification my.cnf, finally found that some people say that the INSERT statement is inserted too many rows at a time, the solution is to insert a row
Using Mysqldump to export and add parameters--skip-extended-insert
I'm not sure it's related to the MySQL version, my version is
MySQL Ver 14.14 distrib 5.1.73, for Redhat-linux-gnu (x86_64) using ReadLine 5.1
Finally solves the problem, although has not been able to understand why has this kind of phenomenon to appear, everybody has to know also please to sue, is appreciated