packet for query is too large <1781> 1024 >. you can change this value onthe server by setting the max_allowed_packet' variable
解決方法:進入mysql的安裝目錄找到my.ini 文件 搜索max_allowed_packet 是否存在 如果存在則 改成50M 或者 20M
如果不存在 則加上 max_allowed_packet=50M
//最初
# The maximum size of one packet or any generated or intermediate string, or any parameter sent by the
# mysql_stmt_send_long_data() C API function.
max_allowed_packet=4M
//修改後
# The maximum size of one packet or any generated or intermediate string, or any parameter sent by the
# mysql_stmt_send_long_data() C API function.
max_allowed_packet=50M