MySQL报错:Packets larger than max_allowed_packet are not all

Posted 不爱吃香菜

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL报错:Packets larger than max_allowed_packet are not all相关的知识,希望对你有一定的参考价值。

mysql根据配置文件会限制Server接受的数据包大小。有时候大的插入和更新会受 max_allowed_packet 参数限制,导致写入或者更新失败。

修改方法:

1.修改配置文件my.ini

max_allowed_packet = 10M

2.使用命令修改

mysql> set global max_allowed_packet = 1024*1024*10

查看是否修改成功的命令mysql> show VARIABLES like ‘%max_allowed_packet%‘;

以上是关于MySQL报错:Packets larger than max_allowed_packet are not all的主要内容,如果未能解决你的问题,请参考以下文章

org.apache.kafka.common.network.InvalidReceiveException: Invalid receive (size = 218762506 larger th

org.apache.kafka.common.network.InvalidReceiveException: Invalid receive (size = 218762506 larger th

MySQL技术专题(3)MySQL报错Got an error reading communication packets问题分析指南

MySQL技术专题「问题实战系列」MySQL报错Got an error reading communication packets问题分析指南

Got timeout reading communication packets解决方法

MySQL ERROR Got an error reading communication packets