MySQL Got a packet bigger than 'max_allowed_packet' bytes异
程序员文章站
2022-05-08 09:48:18
...
MySQL Got a packet bigger than 'max_allowed_packet' bytes错误 今天用Navicat Premium执行数据插入命令,一共3万多条记录吧,导入数据库时提示: Error Code:1153 Got a packet bigger than 'max_allowed_packet' bytes错误提示。 开始没注意,提示一大堆
MySQL Got a packet bigger than 'max_allowed_packet' bytes错误今天用Navicat Premium执行数据插入命令,一共3万多条记录吧,导入数据库时提示:
Error Code:1153 Got a packet bigger than 'max_allowed_packet' bytes错误提示。
开始没注意,提示一大堆,后来才看见这句
使用Navicat Premium工具导出MySQL数据时,当数据量大时,导出不会错误,但导入时会出现错误。如果将SQL单独执行会发现是Error Code:1153 Got a packet bigger than 'max_allowed_packet' bytes错误。
对于这个问题可以在my.ini中最后增加一行max_allowed_packet=16M即可(根据实际情况设置)。
注意,在[client]和[mysql]部分增加无效,那个是客户端读取的参数。
推荐阅读
-
MySQL导入数据报 Got a packet bigger than‘max_allowed_packet’bytes 错误的解决方法
-
Got a packet bigger than‘max_allowed_packet’bytes错误的解决方法
-
MYSQL 导入数据Got a packet bigger than...错误_MySQL
-
数据导入报错:Got a packet bigger than‘max_allowed_packet’_MySQL
-
数据导入报错:Got a packet bigger than‘max_allowed_packet’_MySQL
-
MYSQL导入数据Got a packet bigger than...错误_MySQL
-
MySQL导入数据报 Got a packet bigger than‘max_allowed_packet’bytes 错误的解决方法
-
MySQL Got a packet bigger than 'max_allowed_packet' bytes异
-
MySQL Got a packet bigger than 'max_allowed_packet' bytes异
-
Got a packet bigger than‘max_allowed_packet’bytes错误的解决方法