diff --git a/build/deployOn b/build/deployOn index 05be1cf..29cff83 100755 --- a/build/deployOn +++ b/build/deployOn @@ -8,5 +8,5 @@ ssh $1 mkdir /images/mysqltuner rsync -avz ${_DIR}/.. $1:/images/mysqltuner if [ "$2" = "run" ];then - ssh $1 "su - mysql -c 'cd /images/mysqltuner; perl mysqltuner.pl --verbose'" + ssh $1 "su - mysql -c 'cd /images/mysqltuner; source /opt/mysql/myqenv myserver1;perl mysqltuner.pl --verbose --color'" fi diff --git a/mysqltuner.pl b/mysqltuner.pl index e56bd8b..5ab5a6d 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1,5 +1,5 @@ #!/usr/bin/env perl -# mysqltuner.pl - Version 1.7.7 +# mysqltuner.pl - Version 1.7.8 # 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.7"; +my $tunerversion = "1.7.8"; my ( @adjvars, @generalrec ); # Set defaults @@ -1697,6 +1697,9 @@ sub security_recommendations { $PASS_COLUMN_NAME = "IF(plugin='mysql_native_password', authentication_string, password)"; } + if ( $myvar{'version'} =~ /5\.7/ ) { + $PASS_COLUMN_NAME = "authentication_string"; + } debugprint "Password column = $PASS_COLUMN_NAME"; # Looking for Anonymous users @@ -6202,7 +6205,7 @@ __END__ =head1 NAME - MySQLTuner 1.7.7 - MySQL High Performance Tuning Script + MySQLTuner 1.7.8 - MySQL High Performance Tuning Script =head1 IMPORTANT USAGE GUIDELINES