Fix #195 single quote enclosed password
This commit is contained in:
parent
ce58509eeb
commit
1727a42b29
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue