max_allowed_packet = 1Mmysql
mysql通信的数据包大小设置是1M,这就形成sql语句执行失败。sql
解决方案:spa
1设置更大的值io
2拆分SQL语句或者写存储过程sql语句