Home > Database > Mysql Tutorial > body text

How to restore a database dumped by mysqldump?

PHPz
Release: 2023-08-27 16:29:09
forward
1058 people have browsed it

如何恢复 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
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template