I am trying to import a dump file to MySQL through command line. The dump file contains about 2 million entries. To import the data I used the command mysql -u USERNAME -p DATABASE < filename.sql
. The problem is that the process started 24 hours ago and it's still going while it imported merely 50% of the data. Is there any option I could add to the command to make the process faster or is there any other command I could use? The dump file is available in .sql
and .sql.gz
format. I also tried to import the sql.gz file but it gives an error saying that there is an error at line 1 with some quote.
Thanks!