From d50c1699cd45b7cc71eba7add879e982e3b6c6c8 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Thu, 18 Aug 2011 11:52:44 -0600 Subject: [PATCH] Pass mysql opts to mysqldump first. --- bin/pt-mysql-summary | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pt-mysql-summary b/bin/pt-mysql-summary index a237d4e6..40f28367 100755 --- a/bin/pt-mysql-summary +++ b/bin/pt-mysql-summary @@ -1058,10 +1058,10 @@ main() { echo "There are ${num_dbs} databases. Would you like to dump all, or just one?" echo -n "Type the name of the database, or press Enter to dump all of them. " read dbtodump - mysqldump --no-data --skip-comments \ + mysqldump "$@" --no-data --skip-comments \ --skip-add-locks --skip-add-drop-table --compact \ --skip-lock-all-tables --skip-lock-tables --skip-set-charset \ - ${trg_arg} "$@" ${dbtodump:---all-databases} > /tmp/percona-toolkit-mysqldump + ${trg_arg} ${dbtodump:---all-databases} > /tmp/percona-toolkit-mysqldump # Test the result by checking the file, not by the exit status, because we # might get partway through and then die, and the info is worth analyzing # anyway.