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

点击电脑右下角wamp图标,然后进入mysql 下面的 my.ini

转移数据发现报这个错,字面意思允许的不够大。网上很多说法不起作用,解决方法如下:

[mysqld]
port=3306
explicit_defaults_for_timestamp = TRUE
max_allowed_packet = 104857600
max_allowed_packet = 104857600 加上这一行。

可以借助Navicat,在数据库中新建查询

输入 show VARIABLES like ‘%max_allowed_packet%‘;  查看空间大小

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

原文地址:https://www.cnblogs.com/del88/p/12210072.html

时间: 2024-10-05 04:01:45

Wamp 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的问题 2个解决方法: 1.临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M 2.修改my.cnf,需重启mysql 在 [MySQLd] 部分添加一句(如果存在,调整其值就可以): max_allowed_packet=10M

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

临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M 这条语句可以在小黑窗里执行,也可以在navicat查询新建查询里执行.

数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题

数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题 2个解决方法: 1.临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M 2.修改my.cnf,需重启mysql. 在 [MySQLd] 部分添加一句(如果存在,调整其值就可以): max_allowed_packet=10M

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

备份还原或数据导入报错1153:Got a packet bigger than'max_allowed_packet'bytes的问题 这个问题可以有2个解决方法: 1.临时修改: mysql>set global max_allowed_packet=524288000; #修改 512M 2.修改my.cnf(windows下my.ini),需重启mysql.在 [MySQLd] 部分添加一句(如果存在,调整其值就可以):max_allowed_packet=256M (根据实际情况调整数

navicat 导入数据报错 --- 1153 - got a packet bigger than 'max_allowed_packet' bytes

navicat 导入数据报错 --- 1153 - got a packet bigger than 'max_allowed_packet' bytes 今天在用navicat导入sql文件时报错:mysql 错误 err [imp] 1153 - got a packet bigger than 'max_allowed_packet' bytes 查了一下,原来是mysql默认读取执行的sql文件最大为16m,我这个sql文件260m,所以执行不过去 解决方法: 在mysql安装目录下找到

centos mysql 大量数据导入时1153 错误:1153 - Got a packet bigger than 'max_allowed_packet' bytes

参考:http://stackoverflow.com/questions/93128/mysql-error-1153-got-a-packet-bigger-than-max-allowed-packet-bytes 用脚本写测试数据,在ubuntu上ok,没想到到centos报1153错误.解决方法: 登入mysql,执行: set global net_buffer_length=1000000; set global max_allowed_packet=1000000000; 就ok

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

在win7 mysql56版本导入.sql文件的时候遇到错误,代码: 1153 - Got a packet bigger than 'max_allowed_packet' bytes 终止了数据导入. 配置my.ini失败 使用命令:set global max_allowed_packet=524288000 失败 百度大都这两种方法,设置完执行show VARIABLES like '%max_allowed_packet%';始终显示max_allowed_packet  419430

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

如果将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错误

mysql数据库导入sql文件时提示“Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes”解决办法

向mysql数据库中导入sql文件时,如果文件过大(几百M),会提示"Error Code: 1153 - Got a packet bigger than 'max_allowed_packet' bytes" 1.查看目前数据库配置 show VARIABLES like '%max_allowed_packet%'; 显示如下结果 +--------------------+---------+ | Variable_name      | Value   | +--------