mysql database gone away error 2006

850 Views Asked by At

I am importing a sql file of 80 MB, and the mysql database goes away on error 2006. I increased the connect_timeout=2592000 and wait_timeout = 216000. What if anything else I need to import the sql file into the db.

It gets stuck at 18236 line. Can I start import from the 18237 line?

Appreciate all help.

2

There are 2 best solutions below

0
On

Make a new file with the contents from line 18236 to END, also please check if any insert/update command are there in the beginning. If so, resolve and import the newest file.

0
On

Solved the issue by

max_allowed = 16M