Adding this message for <=5.1 version
No more password checks for MySQL version <=5.1 MySQL version <=5.1 are deprecated and end of support.
This commit is contained in:
parent
2e2d945e63
commit
bead8a77ef
1 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
# mysqltuner.pl - Version 1.6.10
|
# mysqltuner.pl - Version 1.6.11
|
||||||
# High Performance MySQL Tuning Script
|
# High Performance MySQL Tuning Script
|
||||||
# Copyright (C) 2006-2016 Major Hayden - major@mhtx.net
|
# Copyright (C) 2006-2016 Major Hayden - major@mhtx.net
|
||||||
#
|
#
|
||||||
|
@ -54,7 +54,7 @@ $Data::Dumper::Pair = " : ";
|
||||||
#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 = "1.6.10";
|
my $tunerversion = "1.6.11";
|
||||||
my ( @adjvars, @generalrec );
|
my ( @adjvars, @generalrec );
|
||||||
|
|
||||||
# Set defaults
|
# Set defaults
|
||||||
|
@ -1426,7 +1426,11 @@ sub security_recommendations {
|
||||||
else {
|
else {
|
||||||
goodprint "There are no anonymous accounts for any database users";
|
goodprint "There are no anonymous accounts for any database users";
|
||||||
}
|
}
|
||||||
|
if ( mysql_version_le( 5, 1 ) ) {
|
||||||
|
badprint "No more password checks for MySQL version <=5.1";
|
||||||
|
badprint "MySQL version <=5.1 are deprecated and end of support.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
# Looking for Empty Password
|
# Looking for Empty Password
|
||||||
@mysqlstatlist = select_array
|
@mysqlstatlist = select_array
|
||||||
"SELECT CONCAT(user, '\@', host) FROM mysql.user WHERE ($PASS_COLUMN_NAME = '' OR $PASS_COLUMN_NAME IS NULL) AND plugin NOT IN ('unix_socket', 'win_socket')";
|
"SELECT CONCAT(user, '\@', host) FROM mysql.user WHERE ($PASS_COLUMN_NAME = '' OR $PASS_COLUMN_NAME IS NULL) AND plugin NOT IN ('unix_socket', 'win_socket')";
|
||||||
|
@ -4048,7 +4052,7 @@ __END__
|
||||||
|
|
||||||
=head1 NAME
|
=head1 NAME
|
||||||
|
|
||||||
MySQLTuner 1.6.10 - MySQL High Performance Tuning Script
|
MySQLTuner 1.6.11 - MySQL High Performance Tuning Script
|
||||||
|
|
||||||
=head1 IMPORTANT USAGE GUIDELINES
|
=head1 IMPORTANT USAGE GUIDELINES
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue