Lost connection to MySQL server during query? [duplicate]

Try the following 2 things…

1) Add this to your my.cnf / my.ini in the [mysqld] section

max_allowed_packet=32M

(you might have to set this value higher based on your existing database).

2) If the import still does not work, try it like this as well…

mysql -u <user> --password=<password> <database name> <file_to_import

Leave a Comment