没有数据如何转储mysql数据库?

时间:2011-08-19 10:28:41

标签: mysql database mysqldump mysql-management

您需要使用视图和sp转储我的mysql数据库。但我不需要任何数据。我该怎么写mysqldump命令呢?

2 个答案:

答案 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 mysqldumpmysqldump --help