I have been given a VERY large mysql backup file. It is ~630 MB... I guess someone thought it was a good idea to store images in a database... Anyway, I need to
Increasing the wait_timeout and/or interactive_timeout should help. First check the current value:
C:\> mysql -hlocalhost -uroot -proot
mysql> SHOW VARIABLES LIKE 'wait_timeout';
If this is very low (e.g. 30 seconds) then increase it (e.g. 5 minutes):
mysql> SET SESSION wait_timeout = 300;
mysql> SET SESSION interactive_timeout = 300;
Then execute your SQL file:
mysql> \. database.sql