sql脚本大小:80.0MB
运行sql脚本时报错2006 - Server has gone away
sql脚本太大
show global variables like 'max_allowed_packet';
改大点就可以执行了(sql脚本80.0MB这里直接改为100MB)
set global max_allowed_packet=1024*1024*100;
改之前:
改之后:
参考资料:
https://blog.csdn.net/qq_27246521/article/details/87797925