php insert Got a packet bigger than 'max_allowed_packet' bytes

线上发现错误Got a packet bigger than 'max_allowed_packet' bytes
但是只是插入一条数据而已,怎么会报这个错呢
max_allowed_packet 我也设置成了10M

clipboard.png

阅读 2.7k
3 个回答

谢邀,能查到对应sql语句吗

谢邀,重启数据库了吗

谢邀,命令行执行

set global net_buffer_length=1000000; 
set global max_allowed_packet=1000000000;
推荐问题