Merge branch 'major:master' into master

This commit is contained in:
Long Radix 2023-05-26 16:24:48 +02:00 committed by GitHub
commit fa3caacb5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
#!/usr/bin/env perl #!/usr/bin/env perl
# mysqltuner.pl - Version 2.1.1 # mysqltuner.pl - Version 2.1.2
# High Performance MySQL Tuning Script # High Performance MySQL Tuning Script
# Copyright (C) 2006-2023 Major Hayden - major@mhtx.net # Copyright (C) 2006-2023 Major Hayden - major@mhtx.net
# Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com # Copyright (C) 2015-2023 Jean-Marie Renouard - jmrenouard@gmail.com
@ -57,7 +57,7 @@ use Cwd 'abs_path';
#use Env; #use Env;
# Set up a few variables for use in the script # Set up a few variables for use in the script
my $tunerversion = "2.1.1"; my $tunerversion = "2.1.2";
my ( @adjvars, @generalrec ); my ( @adjvars, @generalrec );
# Set defaults # Set defaults
@ -3275,13 +3275,13 @@ sub mysql_stats {
push( @adjvars, "skip-name-resolve=0" ); push( @adjvars, "skip-name-resolve=0" );
} }
} }
elsif ( $result{'Variables'}{'skip_name_resolve'} eq 'OFF' ) { elsif ( $result{'Variables'}{'skip_name_resolve'} ne 'OFF' ) {
badprint badprint
"Name resolution is active: a reverse name resolution is made for each new connection which can reduce performance"; "Name resolution is active: a reverse name resolution is made for each new connection which can reduce performance";
push( @generalrec, push( @generalrec,
"Configure your accounts with ip or subnets only, then update your configuration with skip-name-resolve=1" "Configure your accounts with ip or subnets only, then update your configuration with skip_name_resolve=1"
); );
push( @adjvars, "skip-name-resolve=1" ); push( @adjvars, "skip_name_resolve=1" );
} }
# Query cache # Query cache
@ -3972,8 +3972,8 @@ sub mysqsl_pfs {
"select * from sys.$pfs_view" "select * from sys.$pfs_view"
); );
} }
exit 0 if ( $opt{stop} == 1 );
} }
exit 0 if ( $opt{stop} == 1 );
# Top user per connection # Top user per connection
subheaderprint "Performance schema: Top 5 user per connection"; subheaderprint "Performance schema: Top 5 user per connection";
@ -6512,7 +6512,6 @@ sub mysql_tables {
} }
exit 0 if ( $opt{stop} == 1 ); exit 0 if ( $opt{stop} == 1 );
} }
exit 0 if ( $opt{stop} == 1 );
foreach ( select_user_dbs() ) { foreach ( select_user_dbs() ) {
my $dbname = $_; my $dbname = $_;
next unless defined $_; next unless defined $_;
@ -6983,7 +6982,7 @@ __END__
=head1 NAME =head1 NAME
MySQLTuner 2.1.1 - MySQL High Performance Tuning Script MySQLTuner 2.1.2 - MySQL High Performance Tuning Script
=head1 IMPORTANT USAGE GUIDELINES =head1 IMPORTANT USAGE GUIDELINES