Mysql – Restoring MySQL dump – ERROR 2006 (HY000)

databaseMySQL

I am just trying to restore a mysql dump. Below are the command and error message.
Can anybody give me some clues how to approach this?

10:54:16 Restoring C:\Users\matcheek\Documents\dumps\Dump20120405-1.sql

    Running: mysql.exe "--defaults-extra-file="d:\temp\tmpbvhy4i.cnf"  " --host=127.0.0.1 --user=root --port=3306 --default-character-set=utf8 --comments < "C:\\Users\\matcheek\\Documents\\dumps\\Dump20120405-1.sql"

    ERROR 2006 (HY000) at line 271: MySQL server has gone away

Best Answer

For benefit's of people who encounter the same error: I have followed the documentation on the error and played with a few settings. I got it working after making these changes:

wait_timeout=28800
interactive_timeout = 28800
max_allowed_packet=16M