mysql Packet for query is too large (516506 > 1024)


mysql Packet for query is too large (516506 > 1024)_第1张图片
 

注:最近mysql一直提示如下错误

 Packet for query is too large (1185 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.
...

 

按网上要求,检查max_allowed_packet

show VARIABLES like '%max_allowed_packet%';

 

修改max_allowed_packet

set global max_allowed_packet = 2*1024*1024*10

 

或者修改配置文件my.ini(windows)/my.cnf(linux)

max_allowed_packet = 20M

 

重启

你可能感兴趣的:(mysql Packet for query is too large (516506 > 1024))