 
  Data Structure Data Structure
 Networking Networking
 RDBMS RDBMS
 Operating System Operating System
 Java Java
 MS Excel MS Excel
 iOS iOS
 HTML HTML
 CSS CSS
 Android Android
 Python Python
 C Programming C Programming
 C++ C++
 C# C#
 MongoDB MongoDB
 MySQL MySQL
 Javascript Javascript
 PHP PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How can I restore multiple databases or all databases dumped by mysqldump?
Suppose if we have dumped multiple databases or all the databases and now want to restore it then we can do it with the following example −
C:\mysql\bin>mysql -u root < tutorials_query1.sql
With the help of above query, we are restoring the dumped multiple databases named ‘tutorials’ and ‘query1’, which are dumped in the file named ‘tutorials_query1.sql’. In this case, we do not need to write the name of the database.
Similarly, with the help of the following query, we can restore all the databases dumped by mysqldump −
C:\mysql\bin>mysql -u root < alldatabases.sql
With the help of above query, we are restoring all the dumped databases, which are dumped in the file named ‘alldatabases.sql’. In this case, we do not need to write the name of the database.
Advertisements
 