1153: got a packet bigger than ‘Max_ allowed_ Packet ‘bytes
There are two solutions to this problem:
1. Temporary modification:
mysql>set global max_allowed_packet=524288000; #修改 512M
2. To modify my.cnf (my.ini under Windows), restart mysql
add a sentence in the [mysqld] section (if it exists, adjust its value):
Max_ allowed_ Packet = 256M (adjust the value according to the actual situation)
You can use the command:
show VARIABLES like '%max_allowed_packet%’;
Check whether the modification is successful!
Similar Posts:
- [Solved] MYSQL:1153 Got a packet bigger than ‘max_allowed_packet’ bytes
- Error while sending query packet in PHP runtime
- MySQL external import data error [How to Solve]
- Navicat Import Datas Error: — 1153 – Got a packet bigger than ‘max_allowed_packet’ bytes
- ERROR 2006 (HY000): MySQL server has gone away No
- Sqlog recovery database error solution [error code: 2006 – MySQL server has gone away]
- [Solved] JMeter Connect Database error: unblock with ‘mysqladmin flush hosts’
- The ‘INFORMATION_SCHEMA.GLOBAL_STATUS’ feature is disabled; see the documentation for …
- Loading local data is disabled; this must be enabled on both the client and server sides
- MySql Host is blocked because of many connection errors; unblock with ‘mysqladmin flush-hosts…