How to Fix 'Got a packet bigger than max_allowed_packet bytes' MySQL Error
When I tried to import data from a dump file into a new MySQL database, I got “Got a packet bigger than ‘max_allowed_packet’ bytes” error. Apparently ‘max_allowed_packet’ needs to be increased and I don’t have the change permanently. To fix that, just run the following commands in MySQL console:
Or replace the values with some very large numbers work for you. Don’t quit the MySQL console yet and run the importing command on another terminal. The problem should be gone now.
Twitter · Facebook
Linkedin · Delicious
GitHub · Douban · Xbox Live