Packet for query is too large (1706 > 1024). You can change this value on the server by setting the
出現這個錯誤,百分之90是mysql 中max_allowed_packet 設置小了
可以登錄數據庫通過 show variables like '%max_allowed_packet%'查看。
網上好多人通過語句去修改max_allowed_packet --->set global max_allowed_packet=1024*1024*10*2(單位爲B)
但是重啓Mysql還是會恢復到默認值