Home > Database > Mysql Tutorial > body text

mysqldump命令的使用_MySQL

WBOY
Release: 2016-06-01 13:32:18
Original
1094 people have browsed it

mysqldump

bitsCN.com

mysqldump命令的使用

 

1.导出结构不导出数据

 

mysqldump -d databasename -uroot -p > xxx.sql
Copy after login

2.导出数据不导出结构

mysqldump -t databasename -uroot -p > xxx.sql
Copy after login

3.导出数据和表结构

mysqldump databasename -uroot -p > xxx.sql
Copy after login

4.导出特定表的结构

mysqldump -uroot -p -Bdatabasename --table 表名 > xxx.sql
Copy after login

 

 

bitsCN.com
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!