Fix #195 single quote enclosed password

This commit is contained in:
root 2016-04-29 13:46:52 +02:00
parent ce58509eeb
commit 1727a42b29

View file

@ -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";