Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

database restore from sql file

Status
Not open for further replies.

riches85

Programmer
Nov 13, 2002
59
US
I have several databases that I would like to save to a sql file and then transfer them to another system. I used the command &quot;mysqldump databasename > databasename.sql&quot; to back it up and then &quot;mysql databasename < databasename.sql&quot; to restore it just fine. Now there are alot of databases that need to be transfered and instead of backing up each database one by one, i used the --all-databases option when i used mysqldump. Everything went fine, but I'm not sure how to restore it. Every command I have seen requires a database name. Any help would be greatly appreciated. Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top