mysql 会根据配置文件限制 server 接收的数据包的大小. 有时候大的插入和更新会被 max_allowed_packet 参数限制,报如下错误: Packet > ). You can change this value on the server by setting the max_allowed_packet' variable. 我们可以这样查看当前配置: show VARIABLES like '%max_allowed_packet%'; 结果: 我这个值是修改后的,实际上…