【发布时间】:2011-08-19 10:28:41
【问题描述】:
嗨,我需要用视图和 sp 转储我的 mysql 数据库。但我不需要任何数据。我该如何为此编写mysqldump命令?
【问题讨论】:
标签: mysql database mysqldump mysql-management
嗨,我需要用视图和 sp 转储我的 mysql 数据库。但我不需要任何数据。我该如何为此编写mysqldump命令?
【问题讨论】:
标签: mysql database mysqldump mysql-management
-R, --routines Dump stored routines (functions and procedures).
【讨论】:
--no-data, -d
Do not write any table row information (that is, do not dump table contents). This is useful if you want to dump only the CREATE TABLE statement for
the table (for example, to create an empty copy of the table by loading the dump file).
来源:man mysqldump 和 mysqldump --help
【讨论】: