Got a packet bigger than ‘max_allowed_packet‘ bytes解决方法

Posted 秋9

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Got a packet bigger than ‘max_allowed_packet‘ bytes解决方法相关的知识,希望对你有一定的参考价值。

【现象】导入sql时,报如下错误
Error occured at:2022-03-31 15:58:54
Line no.:151
Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes

【解决方法】

执行SET GLOBAL max_allowed_packet=150000000;

150000000表示是150M左右大小

以上是关于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的问题

Got a packet bigger than‘max_allowed_packet’bytes错误的解决方法

mysql:1153 Got a packet bigger than ‘max_allowed_packet’ bytes的解决方法

mysql 导入时报错:Got a packet bigger than‘max_allowed_packet’bytes

Wamp MySQL 报错 Got a packet bigger than 'max_allowed_packet' bytes