首页 > 其他分享 >Navicat 导入数据报错 --- 1153 - Got a packet bigger than 'max_allowed_packet' bytes

Navicat 导入数据报错 --- 1153 - Got a packet bigger than 'max_allowed_packet' bytes

时间:2022-08-26 18:02:33浏览次数:105  
标签:max packet Navicat 报错 1153 allowed Got

今天在用Navicat导入SQL文件时报错:MySql 错误 Err [Imp] 1153 - Got a packet bigger than 'max_allowed_packet' bytes

查了一下,原来是MySQL默认读取执行的SQL文件最大为16M,我这个SQL文件260M,所以执行不过去

解决方法:

在MySQL安装目录下找到文件my.cnf,搜索[mysqld],在其下面添加一句话

max_allowed_packet=400M

重启MySQL服务

这个大小按自己的SQL文件大小而设

 

Navicat 导入数据报错 --- 1153 - Got a packet bigger than 'max_allowed_packet' bytes_xyz846的博客-CSDN博客  https://blog.csdn.net/xyz846/article/details/52210542

标签:max,packet,Navicat,报错,1153,allowed,Got
From: https://www.cnblogs.com/jmbt/p/16628483.html

相关文章