当前位置:Gxlcms > 数据库问题 > MySQL(Navicat)运行.sql文件时报错:[Err] 2006 - MySQL server has gone away 的解决方法

MySQL(Navicat)运行.sql文件时报错:[Err] 2006 - MySQL server has gone away 的解决方法

时间:2021-07-01 10:21:17 帮助过:16人阅读

Message: MySQL server has gone away

原因可能是sql语句过长,超过mysql通信缓存区最大长度;

调整mysql配置文件中max_allowed_packet

编辑mysql.ini

max_allowed_packet=16M

重启mysql  

MySQL(Navicat)运行.sql文件时报错:[Err] 2006 - MySQL server has gone away 的解决方法

标签:通信   调整   err   配置文件   csharp   解决   文件中   sql语句   最大   

人气教程排行