
- 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 a database dumped by mysqldump?
Suppose if we have dumped the whole database and now want to restore it then we can do it with the following example −
C:\mysql\bin>mysql -u root query < tutorials.sql
With the help of above query, we are restoring the dumped database named ‘tutorials’, in the file tutorials.sql, into other database named ‘query’. It means that the tables of database ‘tutorials’ would be restored in a database named ‘query’.
- Related Articles
- How can I restore multiple databases or all databases dumped by mysqldump?
- How can I restore a file created by mysqldump?
- How can we take a backup of the single database by using mysqldump client program?
- How can we take a backup of a particular table from a database by using mysqldump client program?
- mysqldump - A MySQL Database Backup Program
- Duplicate a MySQL Database without using mysqldump?
- How can I restore the MySQL root user full privileges?
- How can I set a MySQL database to use MyISAM by default?
- How can we take a backup of multiple databases by using mysqldump client program?
- How can we take a backup of all the databases by using mysqldump client program?
- How can I get enum possible values in a MySQL database?
- How can we create a new database by using mysqladmin?
- How can I update child objects in MongoDB database?
- How can I count unique records from a column in MySQL database?
- How can we create a new database by using PHP script?

Advertisements