
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
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.
- Related Articles
- How can I restore a database dumped by mysqldump?
- How can we take a backup of multiple databases by using mysqldump client program?
- How can I restore a file created by mysqldump?
- How can we take a backup of all the databases by using mysqldump client program?
- How can I display all databases in MySQL and for each database show all tables?
- How to iterate over all MongoDB databases?
- How Can Hackers Destroy Cloud Server Databases?
- MySQL permissions to view all databases?
- How can I check the tables of databases other than current database?
- How to list all databases in the Mongo shell?
- How to get all the collections from all the MongoDB databases?
- NoSQL Databases
- Relational Databases
- Cloud Databases
- Graph Databases

Advertisements