先查询一下 show VARIABLES like '%max_allowed_packet%'; 看是否为1024
进入mysql server
在mysql 命令行中运行
set global max_allowed_packet = 2*1024*1024*10
然后关闭掉这此mysql server链接,再进入。
show VARIABLES like '%max_allowed_packet%';
查看下max_allowed_packet是否编辑成功
Packet for query is too large (8787 > 1024). You can change this value on the server by setting the
最新推荐文章于 2024-05-23 11:45:39 发布