Wamp MySQL 报错 Got a packet bigger than 'max_allowed_

时间:2021-10-27 03:26:04

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

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

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

 

Wamp MySQL 报错 Got a packet bigger than 'max_allowed_

 

 

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

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

 

Wamp MySQL 报错 Got a packet bigger than 'max_allowed_