Home  >  Article  >  Database  >  How to back up mysql database?

How to back up mysql database?

青灯夜游
青灯夜游Original
2019-05-21 11:11:4649988browse

How to back up mysql database? You can use the mysqldump command to back up the database. This article will introduce it to you. I hope it will be helpful to you.

How to back up mysql database?

You can use the mysqldump command to back up the database

1. Open the start menu, search for cmd in the search box below, and open the cmd command Line

How to back up mysql database?

155840757158245How to back up mysql database?

2. Enter the command to back up the database

The format is:

mysqldump -u[用户名] -p[密码] 数据库名称 > 文件

Example:

mysqldump -uroot -p123456 test>e:/mysqltest/test.dump

How to back up mysql database?

The backup file was saved successfully, as shown in the figure below

How to back up mysql database?

Related learning recommendations:mysql video tutorial

The above is the detailed content of How to back up mysql database?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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