mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-10 13:11:32 +00:00
Update --set-vars and ->prop() in all tools.
This commit is contained in:
@@ -4885,7 +4885,7 @@ sub main {
|
||||
$o->get_opts();
|
||||
|
||||
my $dp = $o->DSNParser();
|
||||
$dp->prop('set-vars', $o->get('set-vars'));
|
||||
$dp->prop('set-vars', $o->set_vars());
|
||||
|
||||
my $vars_from = $o->get('source-of-variables');
|
||||
# my $status_from = lc $o->get('source-of-status');
|
||||
@@ -5766,10 +5766,21 @@ Port number to use for connection.
|
||||
|
||||
=item --set-vars
|
||||
|
||||
type: string; default: wait_timeout=10000
|
||||
type: Array
|
||||
|
||||
Set these MySQL variables. Immediately after connecting to MySQL, this string
|
||||
will be appended to SET and executed.
|
||||
Set the MySQL variables in this comma-separated list of C<variable=value> pairs.
|
||||
|
||||
By default, the tool sets:
|
||||
|
||||
=for comment ignore-pt-internal-value
|
||||
MAGIC_set_vars
|
||||
|
||||
wait_timeout=10000
|
||||
|
||||
Variables specified on the command line override these defaults. For
|
||||
example, specifying C<--set-vars wait_timeout=500> overrides the defaultvalue of C<10000>.
|
||||
|
||||
The tool prints a warning and continues if a variable cannot be set.
|
||||
|
||||
=item --socket
|
||||
|
||||
|
Reference in New Issue
Block a user