MySQL Got a packet bigger than 'max_allowed_packet' bytes错误配置

Posted

tags:

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

在win7 mysql56版本导入.sql文件的时候遇到错误,代码: 1153 - Got a packet bigger than ‘max_allowed_packet‘ bytes 终止了数据导入。


  1. 配置my.ini失败

  2. 使用命令:set global max_allowed_packet=524288000 失败

百度大都这两种方法,设置完执行show VARIABLES like ‘%max_allowed_packet%‘;始终显示max_allowed_packet  4194304 无论如何关闭客户端,如何重启仍旧如此,还得自寻方法:


找到mysql自带客户端工具MySQL Workbench 6.1,连接成功后,点击Server菜单的Options File子菜单,如下:


以上是关于MySQL 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

解决MYSQL的错误:Got a packet bigger than 'max_allowed_packet' bytes

MySQL导入数据报错Got a packet bigger than‘max_allowed_packet’bytes错误的解决方法

Navicat for MySQL 还原MySQL8 备份文件提示:1153 - Got a packet bigger than ‘max_allowed_packet‘ bytes