Created
March 15, 2017 06:16
-
-
Save RoesWibowo/8e646b02be8ea6a3d47796373539d194 to your computer and use it in GitHub Desktop.
MySQL 1153 - Got a packet bigger than 'max_allowed_packet' bytes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql --max_allowed_packet=100M -u root -p database < dump.sql | |
Also, change the my.cnf or my.ini file under the mysqld section and set: | |
max_allowed_packet=100M | |
or command MySQL: | |
set global net_buffer_length=1000000; | |
set global max_allowed_packet=1000000000; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment