

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
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 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 Questions & Answers
- 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?
- mysqldump - A MySQL Database Backup Program
- How can we take a backup of a particular table from a database by using mysqldump client 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 we create a new database by using mysqladmin?
- How can I get enum possible values in a MySQL database?
- How can I update child objects in MongoDB database?
- How can we create a new database by using PHP script?
- How can we delete a MySQL database by using PHP script?
Advertisements