81
81
bool verbose= false;
82
82
static bool use_drizzle_protocol= false;
83
static bool ignore_errors= false;
83
bool ignore_errors= false;
84
84
bool opt_compress= false;
85
85
static bool create_options= true;
86
86
static bool opt_quoted= false;
454
454
commandline_options.add_options()
455
455
("all-databases,A", po::value<bool>(&opt_alldbs)->default_value(false)->zero_tokens(),
456
456
N_("Dump all the databases. This will be same as --databases with all databases selected."))
457
("complete-insert,c", po::value<bool>(&opt_complete_insert)->default_value(false)->zero_tokens(),
458
N_("Use complete insert statements."))
459
457
("compress,C", po::value<bool>(&opt_compress)->default_value(false)->zero_tokens(),
460
458
N_("Use compression in server/client protocol."))
461
459
("force,f", po::value<bool>(&ignore_errors)->default_value(false)->zero_tokens(),
462
460
N_("Continue even if we get an sql-error."))
463
461
("help,?", N_("Display this help message and exit."))
464
462
("lock-all-tables,x", po::value<bool>(&opt_lock_all_tables)->default_value(false)->zero_tokens(),
465
N_("Locks all tables across all databases. This is achieved by taking a global read lock for the duration of the whole dump. Automatically turns --single-transaction and --lock-tables off."))
463
N_("Locks all tables across all databases. This is achieved by taking a global read lock for the duration of the whole dump. Automatically turns --single-transaction off."))
466
464
("single-transaction", po::value<bool>(&opt_single_transaction)->default_value(false)->zero_tokens(),
467
N_("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), 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."))
465
N_("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), no other connection should use the following statements: ALTER TABLE, DROP TABLE, RENAME TABLE, TRUNCATE TABLE, as consistent snapshot is not isolated from them."))
469
N_("Disable --opt. Disables --add-drop-table, --add-locks, --create-options, ---extended-insert, --lock-tables, and --disable-keys."))
467
N_("Disable --opt. Disables --add-drop-table, --add-locks, --create-options, ---extended-insert and --disable-keys."))
470
468
("tables", N_("Overrides option --databases (-B)."))
471
469
("show-progress-size", po::value<uint32_t>(&show_progress_size)->default_value(10000),
472
470
N_("Number of rows before each output progress report (requires --verbose)."))