执行了一组插入语句 提示:2006 - Server has gone away;
2006-服务器已经消失;
消失去哪里了,被黑洞吞没了吗?!!!

网络问题
网络不稳定?断网了?检查网络连接是否正常,确保客户端和服务器之间的通信畅通。
ping 了一下是正常的。
查看mysql超时时间
show global variables like 'wait_timeout';
show global variables like 'interactive_timeout'


把时间设置长点
set global wait_timeout=604800;
set global interactive_timeout=604800;

或者修改my.cnf文件
停止mysql
service mysqld stop

修改my.cnf
vim /etc/my.cnf

添加
wait_timeout=28800
interactive_timeout=28800
重启msyql
service mysqld start









![[最新榜单] 智能手机数据恢复的 10 款最佳应用](https://img-blog.csdnimg.cn/73ecb5b857b742199e708e5c4930414e.png)











