Home >Database >Mysql Tutorial >How to restore a database dumped by mysqldump?

How to restore a database dumped by mysqldump?

PHPz
PHPzforward
2023-08-27 16:29:091074browse

如何恢复 mysqldump 转储的数据库?

Suppose we have dumped the entire database and now want to restore it, then we can do it using the following example -

C:\mysql\bin>mysql -u root query < tutorials.sql

With the help of the above query, I We restored the dumped database named "tutorials" in the file tutorials.sql to another database named "query". This means that the tables of the database "tutorials" will be restored into the database named "query".

The above is the detailed content of How to restore a database dumped by mysqldump?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete