【问题标题】:How to dump mysql database with out data?如何在没有数据的情况下转储mysql数据库?
【发布时间】:2011-08-19 10:28:41
【问题描述】:

嗨,我需要用视图和 sp 转储我的 mysql 数据库。但我不需要任何数据。我该如何为此编写mysqldump命令?

【问题讨论】:

    标签: mysql database mysqldump mysql-management


    【解决方案1】:
      -R, --routines      Dump stored routines (functions and procedures).
    

    【讨论】:

      【解决方案2】:
      --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

      【讨论】:

        猜你喜欢
        • 2011-08-31
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-11-06
        • 2015-11-27
        • 2011-06-13
        相关资源
        最近更新 更多