How do I use mysqldump to export only the CREATE TABLE commands?

后端 未结 6 1445
情深已故
情深已故 2021-01-31 15:26

I\'m trying to use mysqldump to export only the DB schema -- no data, no additional SQL comments, just the CREATE TABLE commands. Here\'s what I\'ve go

6条回答
  •  孤街浪徒
    2021-01-31 16:10

    Did you try the --skip-comments option mentioned in the manual? Does it help?

    http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_comments

提交回复
热议问题