【MYSQL】备份数据还原报错Got a packet bigger than‘max_allowed_packet’bytes

mysql:1153 Got a packet bigger than ‘max_allowed_packet’ bytes

1.临时修改:

set global max_allowed_packet=524288000; #修改 512M

2.修改my.cnf(windows下my.ini),需重启mysql。
在 [MySQLd] 部分添加一句(如果存在,调整其值就可以):
max_allowed_packet=256M (根据实际情况调整数值)
查看:

show VARIABLES like '%max_allowed_packet%’;

你可能感兴趣的:(【MYSQL】备份数据还原报错Got a packet bigger than‘max_allowed_packet’bytes)