From 188fe79ef191da1b9183e3bc3f4fa2d4c22caaf2 Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Wed, 6 Mar 2013 12:11:54 -0300 Subject: [PATCH] Fix for 1008796: Several tools lack --database --- bin/pt-archiver | 6 ++++++ bin/pt-config-diff | 6 ++++++ bin/pt-deadlock-logger | 6 ++++++ bin/pt-find | 6 ++++++ bin/pt-fk-error-logger | 6 ++++++ bin/pt-online-schema-change | 6 ++++++ bin/pt-query-digest | 6 ++++++ bin/pt-upgrade | 6 ++++++ bin/pt-variable-advisor | 6 ++++++ 9 files changed, 54 insertions(+) diff --git a/bin/pt-archiver b/bin/pt-archiver index a86b4d89..15951c9c 100755 --- a/bin/pt-archiver +++ b/bin/pt-archiver @@ -6826,6 +6826,12 @@ type: Array Read this comma-separated list of config files; if specified, this must be the first option on the command line. +=item --database + +short form: -D; type: string + +Connect to this database. + =item --delayed-insert Add the DELAYED modifier to INSERT statements. diff --git a/bin/pt-config-diff b/bin/pt-config-diff index 36bd2e7b..97f9e9f4 100755 --- a/bin/pt-config-diff +++ b/bin/pt-config-diff @@ -5348,6 +5348,12 @@ Read this comma-separated list of config files; if specified, this must be the first option on the command line. (This option does not specify a CONFIG; it's equivalent to C<--defaults-file>.) +=item --database + +short form: -D; type: string + +Connect to this database. + =item --defaults-file short form: -F; type: string diff --git a/bin/pt-deadlock-logger b/bin/pt-deadlock-logger index 16cb958e..f5a5b58b 100755 --- a/bin/pt-deadlock-logger +++ b/bin/pt-deadlock-logger @@ -5077,6 +5077,12 @@ Normally the L<"--dest"> table is expected to exist already. This option causes pt-deadlock-logger to create the table automatically using the suggested table structure. +=item --database + +short form: -D; type: string + +Connect to this database. + =item --daemonize Fork to the background and detach from the shell. POSIX operating systems only. diff --git a/bin/pt-find b/bin/pt-find index aedb6147..2e6ef4db 100755 --- a/bin/pt-find +++ b/bin/pt-find @@ -4285,6 +4285,12 @@ type: Array Read this comma-separated list of config files; if specified, this must be the first option on the command line. +=item --database + +short form: -D; type: string + +Connect to this database. + =item --day-start Measure times (for L<"--mmin">, etc) from the beginning of today rather than diff --git a/bin/pt-fk-error-logger b/bin/pt-fk-error-logger index a5371d7b..8b10fd8e 100755 --- a/bin/pt-fk-error-logger +++ b/bin/pt-fk-error-logger @@ -4114,6 +4114,12 @@ type: Array Read this comma-separated list of config files; if specified, this must be the first option on the command line. +=item --database + +short form: -D; type: string + +Connect to this database. + =item --daemonize Fork to the background and detach from the shell. POSIX operating systems only. diff --git a/bin/pt-online-schema-change b/bin/pt-online-schema-change index 3992a241..6ab3fc1f 100755 --- a/bin/pt-online-schema-change +++ b/bin/pt-online-schema-change @@ -10669,6 +10669,12 @@ single value of Threads_running that is wrong for every server, but a default of 50 seems likely to be unacceptably high for most servers, indicating that the operation should be canceled immediately. +=item --database + +short form: -D; type: string + +Connect to this database. + =item --default-engine Remove C from the new table. diff --git a/bin/pt-query-digest b/bin/pt-query-digest index 760ad129..b785bbfd 100755 --- a/bin/pt-query-digest +++ b/bin/pt-query-digest @@ -14694,6 +14694,12 @@ This option causes the tables specified by L<"--review-table"> and L<"--history-table"> to be created with the default structures shown in the documentation for L<"--review">. +=item --database + +short form: -D; type: string + +Connect to this database. + =item --daemonize Fork to the background and detach from the shell. POSIX diff --git a/bin/pt-upgrade b/bin/pt-upgrade index 61c4022b..d8fc4313 100755 --- a/bin/pt-upgrade +++ b/bin/pt-upgrade @@ -13429,6 +13429,12 @@ to SELECT statements, executed and compared. For example, C is converted to C