From b218cdf05fa26735e9404b827fe56028cb5f8ccf Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Tue, 25 Apr 2023 23:43:23 +0200 Subject: [PATCH] Adding stop option into mysql_tables --- mysqltuner.pl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 8c5a078..43dae64 100644 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -111,7 +111,7 @@ my %opt = ( "defaults-extra-file" => '', "protocol" => '', "dumpdir" => '', - "stop-after-dumping" => 0, + "stop" => 0, ); # Gather the options from the command line @@ -144,7 +144,7 @@ GetOptions( 'idxstat', 'noidxstat', 'server-log=s', 'protocol=s', 'defaults-extra-file=s', 'dumpdir=s', - 'stop-after-dumping' + 'stop' ) or pod2usage( -exitval => 1, @@ -3972,7 +3972,7 @@ sub mysqsl_pfs { ); } } - exit 0 if ( $opt{stop-after-dumping} == 1 ); + exit 0 if ( $opt{stop} == 1 ); # Top user per connection subheaderprint "Performance schema: Top 5 user per connection"; @@ -6508,6 +6508,7 @@ sub mysql_tables { "select * from information_schema.$info_s_table" ); } + exit 0 if ( $opt{stop} == 1 ); } foreach ( select_user_dbs() ) { my $dbname = $_;