深圳全飞鸿

标题: mysqldump命令忽略某些表的语法: --ignore-table [打印本页]

作者: admin    时间: 2019-7-4 00:15
标题: mysqldump命令忽略某些表的语法: --ignore-table
的--ignore-table参数的语法


--ignore-table=db_name.tbl_name

Do not dump the given table, which must be specified using both the database and table names. To ignore multiple tables, use this option multiple times. This option also can be used to ignore views.

解释:

--ignore-table=数据库名.表名
该参数的作用是,对某些表不进行导出。等号后面的参数即表的信息,必须通过数据库和表名来定义。如果要忽略多张表,那么就要多次使用--ignore-table参数,比如--ignore-table=A.tabA --ignore-table=A.tabB.
同时,这个参数可以用来忽略视图的导出。




欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) Powered by Discuz! X3.2