Problem in importing database in MySQL

Posted by Krt_Malta on Stack Overflow See other posts from Stack Overflow or by Krt_Malta
Published on 2010-05-24T00:23:23Z Indexed on 2010/05/24 0:30 UTC
Read the original article Hit count: 563

Filed under:
|

I have a .sql file with some database backups inside. Now I want to restore them back to MySQL. How can I this using command line of MySqL please? I found this:

mysql -u username -p -h localhost database_name < dumpfile.sql  

but I don't know what username should be, what database_name should be and how I could browse to a .sql file in another folder.

© Stack Overflow or respective owner

Related posts about mysql

Related posts about database-restore