I have 10 GB SQL file with millions of rows in 72 tables. My storage engine is innodb.
I have created the database with all required tables and issued the following command in MySQL prompt:
mysql> source path/to/my/sqlfile.sql
It would run great until it got to about 10% of the way. It would start fast and after a few minutes or later it slow down to three seconds per insert statement and it keeps slowing to 10 seconds per insert.
It has been running for three days now and 30% of data has been restored.
I can't figure why is it so slow ?