From 1727a42b29868ae956e01912598fc9bb3dbd496f Mon Sep 17 00:00:00 2001 From: root Date: Fri, 29 Apr 2016 13:46:52 +0200 Subject: [PATCH] Fix #195 single quote enclosed password --- mysqltuner.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysqltuner.pl b/mysqltuner.pl index ac577b2..d6f1e9a 100755 --- a/mysqltuner.pl +++ b/mysqltuner.pl @@ -696,7 +696,7 @@ sub mysql_setup { # Did we already get a username and password passed on the command line? if ( $opt{user} ne 0 and $opt{pass} ne 0 ) { - $mysqllogin = "-u $opt{user} -p\"$opt{pass}\"" . $remotestring; + $mysqllogin = "-u $opt{user} -p'$opt{pass}'" . $remotestring; my $loginstatus = `$mysqladmincmd ping $mysqllogin 2>&1`; if ( $loginstatus =~ /mysqld is alive/ ) { goodprint "Logged in using credentials passed on the command line";