【发布时间】:2012-12-10 23:09:49
【问题描述】:
我想使用 unix 命令行沿表模式和表数据转储我的数据库。
我用过。
mysqldump -d -u root -p frontend > frontend.sql
但上面的命令只转储模式而不是数据库中的数据。
请帮助我如何将数据库连同数据一起转储。
【问题讨论】:
-
你想要的是
mysqldump。 -
-d from man mysql dump
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).