From 9f7a599195447e974eaa4530baceb7ce7f146bff Mon Sep 17 00:00:00 2001 From: Marco Martinelli Date: Thu, 18 Jan 2018 07:39:52 +0100 Subject: [PATCH 1/2] Proposed fix for #268 --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 1e0a61a..149378f 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1689,7 +1689,7 @@ sub security_recommendations { } my $PASS_COLUMN_NAME = 'password'; - if ( $myvar{'version'} =~ /5.7/ ) { + if ( $myvar{'version'} =~ /5\.7|10\..*MariaDB*/ ) { $PASS_COLUMN_NAME = 'authentication_string'; } debugprint "Password column = $PASS_COLUMN_NAME"; From 06f20b1fbbc31cfcd03def7ae04699c997b6f53c Mon Sep 17 00:00:00 2001 From: Marco Martinelli Date: Wed, 14 Feb 2018 22:40:14 +0100 Subject: [PATCH 2/2] Proposed fix for #268 --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index 149378f..4d7ac02 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -1690,7 +1690,7 @@ sub security_recommendations { my $PASS_COLUMN_NAME = 'password'; if ( $myvar{'version'} =~ /5\.7|10\..*MariaDB*/ ) { - $PASS_COLUMN_NAME = 'authentication_string'; + $PASS_COLUMN_NAME = 'IF(plugin=\'mysql_native_password\', authentication_string, password)'; } debugprint "Password column = $PASS_COLUMN_NAME";