mysql导入数据时一个insert过大导致Mysql server has gone way,解决办法

SET GLOBAL max_allowed_packet=104857600000000;
SET interactive_timeout=288000000000
SET wait_timeout=288000000000
然后导入。
最后恢复默认值:
SET GLOBAL max_allowed_packet=10485760;
SET interactive_timeout=28800
SET wait_timeout=28800
 

你可能感兴趣的:(SQL Server)