Home >Database >Mysql Tutorial >mysql dump用法_MySQL

mysql dump用法_MySQL

WBOY
WBOYOriginal
2016-06-01 13:04:281526browse

数据库mysqldump的使用
mysqldump -hhost -uusername -ppassword --databases db1 > db1.sql
导出(会导出数据):
mysqldump -h10.210.211.51 -uroot -ptools --databases starry_oplat > starry_oplat_db.sql
导出(只导出表结构):
mysqldump --opt -d 数据库名 -u root -p > xxx.sql  
导入:
mysql>use dapan;
mysql>source starry_oplat_db.sql;

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