您需要使用视图和sp转储我的mysql数据库。但我不需要任何数据。我该怎么写mysqldump命令呢?
答案 0 :(得分:2)
-R, --routines Dump stored routines (functions and procedures).
答案 1 :(得分:1)
--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