sqlyog 导入 loss connection

Led me to look for a long time did not find the cause, that is guided by the 5.5mysql then import 5.7mysql version is not the same wrong. 
Baidu tried many ways of no use, try the command line introduced packets: 
ERROR 1153 (08S01) AT Line 1012: Got Bigger Within last Packet A 'the max_allowed_packet' bytes error. The reason is the same, but sqlyog and other tools being given the wrong contents, and then on the 5.7mysql the my.ini 
when ysql execute large sql file will be reported the following error:

Error Code: 2013. Lost connection to MySQL server during query

Cause of the problem: sql script file exceeds the maximum file mysql server settings

Solution: Modify the mysql configuration file, modify or add max_allowed_packet parameters, 
resize appropriate size, and then restart the mysql service, such as:

[mysqld]  
max_allowed_packet=64M

Then use sqlyog import it. The problem is not specifically sqlyog tools, is not clear.

Guess you like

Origin www.cnblogs.com/whm-blog/p/11201822.html