MySQL Restore Data

Posted on March 7, 2007, under MySQL.

To restore the data from the .sql file to the database, please use the following command. It worked for me.

mysql -u root -p db_name < path_to_sql_file
Enter password:

Hope this helps!

Leave a Comment

You must be logged in to post a comment.