update staff
This commit is contained in:
parent
737334f9e0
commit
de1bd2015e
2 changed files with 36 additions and 23 deletions
2
USAGE.md
2
USAGE.md
|
@ -1,6 +1,6 @@
|
|||
# NAME
|
||||
|
||||
MySQLTuner 1.7.6 - MySQL High Performance Tuning Script
|
||||
MySQLTuner 1.7.7 - MySQL High Performance Tuning Script
|
||||
|
||||
# IMPORTANT USAGE GUIDELINES
|
||||
|
||||
|
|
|
@ -121,7 +121,8 @@ GetOptions(
|
|||
'verbose', 'sysstat',
|
||||
'password=s', 'pfstat',
|
||||
'passenv=s', 'userenv=s',
|
||||
'defaults-file=s', 'ssl-ca=s', 'color'
|
||||
'defaults-file=s', 'ssl-ca=s',
|
||||
'color'
|
||||
)
|
||||
or pod2usage(
|
||||
-exitval => 1,
|
||||
|
@ -202,6 +203,7 @@ $opt{nocolor} = 1 if defined($outputfile);
|
|||
$opt{nocolor} = 1 unless ( -t STDOUT );
|
||||
|
||||
$opt{nocolor} = 0 if ( $opt{color} == 1 );
|
||||
|
||||
# Setting up the colors for the print styles
|
||||
my $me = `whoami`;
|
||||
$me =~ s/\n//g;
|
||||
|
@ -1845,14 +1847,17 @@ sub get_replication_status {
|
|||
}
|
||||
infoprint "Binlog format: " . $myvar{'binlog_format'};
|
||||
infoprint "XA support enabled: " . $myvar{'innodb_support_xa'};
|
||||
infoprint "Semi synchronous replication Master: ". $myvar{'rpl_semi_sync_master_enabled'};
|
||||
infoprint "Semi synchronous replication Slave: ". $myvar{'rpl_semi_sync_slave_enabled'};
|
||||
infoprint "Semi synchronous replication Master: "
|
||||
. $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 ) {
|
||||
infoprint "This is a standalone server";
|
||||
return;
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -1919,11 +1924,11 @@ sub mysql_version_eq {
|
|||
my ( $maj, $min, $mic ) = @_;
|
||||
$min ||= 0;
|
||||
$mic ||= 0;
|
||||
return
|
||||
( int($mysqlvermajor) == int($maj)
|
||||
return ( int($mysqlvermajor) == int($maj)
|
||||
&& int($mysqlverminor) == int($min)
|
||||
&& int($mysqlvermicro) == int($mic) );
|
||||
}
|
||||
|
||||
# Checks if MySQL version is greater than equal to (major, minor, micro)
|
||||
sub mysql_version_ge {
|
||||
my ( $maj, $min, $mic ) = @_;
|
||||
|
@ -3083,9 +3088,15 @@ sub mysql_stats {
|
|||
"Read this before increasing "
|
||||
. $table_cache_var
|
||||
. " over 64: http://bit.ly/1mi7c4C" );
|
||||
push( @generalrec, "This is MyISAM only table_cache scalability problem, InnoDB not affected.");
|
||||
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,
|
||||
"This is MyISAM only table_cache scalability problem, InnoDB not affected."
|
||||
);
|
||||
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,
|
||||
"Beware that open_files_limit ("
|
||||
. $myvar{'open_files_limit'}
|
||||
|
@ -3803,6 +3814,7 @@ sub mysqsl_pfs {
|
|||
}
|
||||
infoprint "No information found or indicators deactivated."
|
||||
if ( $nbL == 1 );
|
||||
|
||||
# InnoDB Buffer Pool by schema
|
||||
subheaderprint "Performance schema: InnoDB Buffer Pool by schema";
|
||||
$nbL = 1;
|
||||
|
@ -6159,6 +6171,7 @@ validate_tuner_version; # Check last version
|
|||
mysql_setup; # Gotta login first
|
||||
debugprint "MySQL FINAL Client : $mysqlcmd $mysqllogin";
|
||||
debugprint "MySQL Admin FINAL Client : $mysqladmincmd $mysqllogin";
|
||||
|
||||
#exit(0);
|
||||
os_setup; # Set up some OS variables
|
||||
get_all_vars; # Toss variables/status into hashes
|
||||
|
|
Loading…
Reference in a new issue