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