Chinaunix

标题: 请教一个MYSQL数据库备份的问题 [打印本页]

作者: wleige    时间: 2007-08-09 14:08
标题: 请教一个MYSQL数据库备份的问题
如果一个数据库在有50个表,想备份其中的49个,另一个数据量比较大,而且没有必要备份。
有什么好的办法解这样的问题
作者: SkyBelieve    时间: 2007-08-09 14:34
mysqldump的--ignore-table应该可以吧。。
作者: wleige    时间: 2007-08-09 15:34
谢谢

--ignore-table=name Do not dump the specified table. To specify more than one
                      table to ignore, use the directive multiple times, once
                      for each table. Each table must be specified with both
                      database and table names, e.g.
                      --ignore-table=database.table
作者: Coolriver    时间: 2007-08-09 21:08
原帖由 SkyBelieve 于 2007-8-9 14:34 发表
mysqldump的--ignore-table应该可以吧。。

正解
作者: tinging    时间: 2007-08-10 11:07
不错,学了一手。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2