update staff

This commit is contained in:
Jean-Marie RENOUARD 2018-03-19 17:17:11 +01:00
parent 737334f9e0
commit de1bd2015e
2 changed files with 36 additions and 23 deletions

View file

@ -1,6 +1,6 @@
# NAME # NAME
MySQLTuner 1.7.6 - MySQL High Performance Tuning Script MySQLTuner 1.7.7 - MySQL High Performance Tuning Script
# IMPORTANT USAGE GUIDELINES # IMPORTANT USAGE GUIDELINES

View file

@ -121,7 +121,8 @@ GetOptions(
'verbose', 'sysstat', 'verbose', 'sysstat',
'password=s', 'pfstat', 'password=s', 'pfstat',
'passenv=s', 'userenv=s', 'passenv=s', 'userenv=s',
'defaults-file=s', 'ssl-ca=s', 'color' 'defaults-file=s', 'ssl-ca=s',
'color'
) )
or pod2usage( or pod2usage(
-exitval => 1, -exitval => 1,
@ -202,6 +203,7 @@ $opt{nocolor} = 1 if defined($outputfile);
$opt{nocolor} = 1 unless ( -t STDOUT ); $opt{nocolor} = 1 unless ( -t STDOUT );
$opt{nocolor} = 0 if ( $opt{color} == 1 ); $opt{nocolor} = 0 if ( $opt{color} == 1 );
# Setting up the colors for the print styles # Setting up the colors for the print styles
my $me = `whoami`; my $me = `whoami`;
$me =~ s/\n//g; $me =~ s/\n//g;
@ -1845,14 +1847,17 @@ sub get_replication_status {
} }
infoprint "Binlog format: " . $myvar{'binlog_format'}; infoprint "Binlog format: " . $myvar{'binlog_format'};
infoprint "XA support enabled: " . $myvar{'innodb_support_xa'}; infoprint "XA support enabled: " . $myvar{'innodb_support_xa'};
infoprint "Semi synchronous replication Master: ". $myvar{'rpl_semi_sync_master_enabled'}; infoprint "Semi synchronous replication Master: "
infoprint "Semi synchronous replication Slave: ". $myvar{'rpl_semi_sync_slave_enabled'}; . $myvar{'rpl_semi_sync_master_enabled'};
infoprint "Semi synchronous replication Slave: "
. $myvar{'rpl_semi_sync_slave_enabled'};
if ( scalar( keys %myrepl ) == 0 and scalar( keys %myslaves ) == 0 ) { if ( scalar( keys %myrepl ) == 0 and scalar( keys %myslaves ) == 0 ) {
infoprint "This is a standalone server"; infoprint "This is a standalone server";
return; return;
} }
if ( scalar( keys %myrepl ) == 0 ) { if ( scalar( keys %myrepl ) == 0 ) {
infoprint "No replication setup for this server or replication not started."; infoprint
"No replication setup for this server or replication not started.";
return; return;
} }
@ -1919,11 +1924,11 @@ sub mysql_version_eq {
my ( $maj, $min, $mic ) = @_; my ( $maj, $min, $mic ) = @_;
$min ||= 0; $min ||= 0;
$mic ||= 0; $mic ||= 0;
return return ( int($mysqlvermajor) == int($maj)
( int($mysqlvermajor) == int($maj)
&& int($mysqlverminor) == int($min) && int($mysqlverminor) == int($min)
&& int($mysqlvermicro) == int($mic) ); && int($mysqlvermicro) == int($mic) );
} }
# Checks if MySQL version is greater than equal to (major, minor, micro) # Checks if MySQL version is greater than equal to (major, minor, micro)
sub mysql_version_ge { sub mysql_version_ge {
my ( $maj, $min, $mic ) = @_; my ( $maj, $min, $mic ) = @_;
@ -3083,9 +3088,15 @@ sub mysql_stats {
"Read this before increasing " "Read this before increasing "
. $table_cache_var . $table_cache_var
. " over 64: http://bit.ly/1mi7c4C" ); . " over 64: http://bit.ly/1mi7c4C" );
push( @generalrec, "This is MyISAM only table_cache scalability problem, InnoDB not affected."); push( @generalrec,
push ( @generalrec, "See more details here: https://bugs.mysql.com/bug.php?id=49177"); "This is MyISAM only table_cache scalability problem, InnoDB not affected."
push ( @generalrec, "This bug already fixed in MySQL 5.7.9 and newer MySQL versions."); );
push( @generalrec,
"See more details here: https://bugs.mysql.com/bug.php?id=49177"
);
push( @generalrec,
"This bug already fixed in MySQL 5.7.9 and newer MySQL versions."
);
push( @generalrec, push( @generalrec,
"Beware that open_files_limit (" "Beware that open_files_limit ("
. $myvar{'open_files_limit'} . $myvar{'open_files_limit'}
@ -3803,6 +3814,7 @@ sub mysqsl_pfs {
} }
infoprint "No information found or indicators deactivated." infoprint "No information found or indicators deactivated."
if ( $nbL == 1 ); if ( $nbL == 1 );
# InnoDB Buffer Pool by schema # InnoDB Buffer Pool by schema
subheaderprint "Performance schema: InnoDB Buffer Pool by schema"; subheaderprint "Performance schema: InnoDB Buffer Pool by schema";
$nbL = 1; $nbL = 1;
@ -6159,6 +6171,7 @@ validate_tuner_version; # Check last version
mysql_setup; # Gotta login first mysql_setup; # Gotta login first
debugprint "MySQL FINAL Client : $mysqlcmd $mysqllogin"; debugprint "MySQL FINAL Client : $mysqlcmd $mysqllogin";
debugprint "MySQL Admin FINAL Client : $mysqladmincmd $mysqllogin"; debugprint "MySQL Admin FINAL Client : $mysqladmincmd $mysqllogin";
#exit(0); #exit(0);
os_setup; # Set up some OS variables os_setup; # Set up some OS variables
get_all_vars; # Toss variables/status into hashes get_all_vars; # Toss variables/status into hashes