Home  >  Article  >  Database  >  Mysqldump备份和还原MySQL数据库!_MySQL

Mysqldump备份和还原MySQL数据库!_MySQL

WBOY
WBOYOriginal
2016-06-01 13:48:31885browse

mysqldump

bitsCN.com

Mysqldump备份和还原MySQL数据库

mysqldump [OPTIONS] database [tables]
如果不给定任何表,整个数据库将被导出。

 

备份MySQL数据库的命令

mysqldump -hhostname -uusername -ppassword databasename > backupfile.sqlbitsCN.com
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