From ff2a47e4618326ede36ca8553981ac7c66ad36fd Mon Sep 17 00:00:00 2001 From: Jean-Marie RENOUARD Date: Mon, 19 Mar 2018 16:34:41 +0100 Subject: [PATCH] Issue #373 Fix for password column on MySQL 5.7 --- mysqltuner.pl | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 5ab5a6d..8d6bc0a 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# mysqltuner.pl - Version 1.7.8 +# mysqltuner.pl - Version 1.7.7 # High Performance MySQL Tuning Script # Copyright (C) 2006-2018 Major Hayden - major@mhtx.net # @@ -56,7 +56,7 @@ $Data::Dumper::Pair = " : "; #use Env; # Set up a few variables for use in the script -my $tunerversion = "1.7.8"; +my $tunerversion = "1.7.7"; my ( @adjvars, @generalrec ); # Set defaults @@ -1695,10 +1695,7 @@ sub security_recommendations { my $PASS_COLUMN_NAME = 'password'; if ( $myvar{'version'} =~ /5\.7|10\..*MariaDB*/ ) { $PASS_COLUMN_NAME = - "IF(plugin='mysql_native_password', authentication_string, password)"; - } - if ( $myvar{'version'} =~ /5\.7/ ) { - $PASS_COLUMN_NAME = "authentication_string"; + "IF(plugin='mysql_native_password', authentication_string, 'password')"; } debugprint "Password column = $PASS_COLUMN_NAME"; @@ -6205,7 +6202,7 @@ __END__ =head1 NAME - MySQLTuner 1.7.8 - MySQL High Performance Tuning Script + MySQLTuner 1.7.7 - MySQL High Performance Tuning Script =head1 IMPORTANT USAGE GUIDELINES