packet for query is too large 1024 >. you can change this value on the server by setting the

packet for query is too large <1781> 1024 >. you can change this value on the 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章