--single-transaction | Creates a consistent snapshot by dumping all tables in a single transaction. Works ONLY for tables stored in storage engines which support multiversioning (currently only InnoDB does); the dump is NOT guaranteed to be consistent for other storage engines. While a --single-transaction dump is in process, to ensure a valid dump file (correct table contents and binary log position), no other connection should use the following statements: ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE, as consistent snapshot is not isolated from them. Option automatically turns off --lock-tables. | mysqldump --single-transaction参数的作用 http://www.nagomes.com/disc/forum.php?mod=viewthread&tid=250&fromuid=2 |
--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 | mysqldump命令忽略某些表的语法: --ignore-table http://www.nagomes.com/disc/foru ... d&tid=247&fromuid=2 |
-A, --all-databases | Dump all the databases. This will be same as --databases with all databases selected. | |
--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 | |
-R, --routines | Dump stored routines (functions and procedures). | |
--triggers | Dump triggers for each dumped table | |
--master-data[=#] | This causes the binary log position and filename to be appended to the output. If equal to 1, will print it as a CHANGE MASTER command; if equal to 2, that command will be prefixed with a comment symbol. This option will turn --lock-all-tables on, unless --single-transaction is specified too (in which case a global read lock is only taken a short time at the beginning of the dump - don't forget to read about --single-transaction below). In all cases any action on logs will happen at the exact moment of the dump.Option automatically turns --lock-tables off. | |
欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/) | Powered by Discuz! X3.2 |