From 572c8c1f19293147428d2dd89481537168da1f54 Mon Sep 17 00:00:00 2001 From: Carlos Salguero Date: Tue, 12 Jul 2016 12:59:12 -0300 Subject: [PATCH] Added --slave-user & --slave pass to all scripts The fix has been applied to all files using MasterSlave pkg Changes to be committed: modified: bin/pt-archiver modified: bin/pt-heartbeat modified: bin/pt-kill modified: bin/pt-query-digest modified: bin/pt-slave-find modified: bin/pt-slave-restart modified: bin/pt-table-checksum --- bin/pt-archiver | 16 ++++++++++++++++ bin/pt-heartbeat | 16 ++++++++++++++++ bin/pt-kill | 16 ++++++++++++++++ bin/pt-query-digest | 16 ++++++++++++++++ bin/pt-slave-find | 16 ++++++++++++++++ bin/pt-slave-restart | 16 ++++++++++++++++ bin/pt-table-checksum | 16 ++++++++++++++++ 7 files changed, 112 insertions(+) diff --git a/bin/pt-archiver b/bin/pt-archiver index 7a1832c7..f6dde71e 100755 --- a/bin/pt-archiver +++ b/bin/pt-archiver @@ -7771,6 +7771,22 @@ stop archiving and exit. The default is /tmp/pt-archiver-sentinel. You might find this handy to stop cron jobs gracefully if necessary. See also L<"--stop">. +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array diff --git a/bin/pt-heartbeat b/bin/pt-heartbeat index 42fa9d84..68c15f3b 100755 --- a/bin/pt-heartbeat +++ b/bin/pt-heartbeat @@ -6882,6 +6882,22 @@ type: string; default: /tmp/pt-heartbeat-sentinel Exit if this file exists. +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array diff --git a/bin/pt-kill b/bin/pt-kill index 2879cb0a..8f64453f 100755 --- a/bin/pt-kill +++ b/bin/pt-kill @@ -7718,6 +7718,22 @@ The presence of the file specified by L<"--sentinel"> will cause all running instances of pt-kill to exit. You might find this handy to stop cron jobs gracefully if necessary. See also L<"--stop">. +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array diff --git a/bin/pt-query-digest b/bin/pt-query-digest index ae33df39..7643e43b 100755 --- a/bin/pt-query-digest +++ b/bin/pt-query-digest @@ -16105,6 +16105,22 @@ queries. A complete example: pt-query-digest --sample 2 --no-report --output slowlog slow.log +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array diff --git a/bin/pt-slave-find b/bin/pt-slave-find index 02e15dfe..01c9ecff 100755 --- a/bin/pt-slave-find +++ b/bin/pt-slave-find @@ -4213,6 +4213,22 @@ Example: Might delay runtime a few seconds. +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array diff --git a/bin/pt-slave-restart b/bin/pt-slave-restart index a0406caa..7e944cea 100755 --- a/bin/pt-slave-restart +++ b/bin/pt-slave-restart @@ -5684,6 +5684,22 @@ type: string; default: /tmp/pt-slave-restart-sentinel Exit if this file exists. +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array diff --git a/bin/pt-table-checksum b/bin/pt-table-checksum index 2162e508..54f2c6f3 100755 --- a/bin/pt-table-checksum +++ b/bin/pt-table-checksum @@ -12624,6 +12624,22 @@ type: string; default: # The separator character used for CONCAT_WS(). This character is used to join the values of columns when checksumming. +=item --slave-user + +type: string + +Sets the user to be used to connect to the slaves. +This parameter allows you to have a different user with less privileges on the +slaves but that user must exist on all slaves. + +=item --slave-password + +type: string + +Sets the password to be used to connect to the slaves. +It can be used with --slave-user and the password for the user must be the same +on all slaves. + =item --set-vars type: Array; group: Connection