summaryrefslogtreecommitdiff
path: root/scripts/mysqld_multi.sh
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-09-02 12:42:00 -0700
committerjimw@mysql.com <>2005-09-02 12:42:00 -0700
commit0e323e566d9e6300ec70cd5a85b7e8f5ed257a99 (patch)
treef19bfa5806b4eb963afec8d537624bfb9ade439c /scripts/mysqld_multi.sh
parent8553349638b660b5f83e1cb6dddde552b825a03b (diff)
parent9dc0da7c4656726b7a56980e3e28a299557a9462 (diff)
downloadmariadb-git-0e323e566d9e6300ec70cd5a85b7e8f5ed257a99.tar.gz
Merge mysql.com:/home/jimw/my/mysql-4.1-clean
into mysql.com:/home/jimw/my/mysql-5.0-clean
Diffstat (limited to 'scripts/mysqld_multi.sh')
-rw-r--r--scripts/mysqld_multi.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/mysqld_multi.sh b/scripts/mysqld_multi.sh
index 642772bca44..098cd894916 100644
--- a/scripts/mysqld_multi.sh
+++ b/scripts/mysqld_multi.sh
@@ -412,7 +412,12 @@ sub get_mysqladmin_options
$mysqladmin_found= 0 if (!length($mysqladmin));
$com = "$mysqladmin";
$tmp = " -u $opt_user";
- $tmp.= defined($opt_password) ? " -p$opt_password" : "";
+ if (defined($opt_password)) {
+ my $pw= $opt_password;
+ # Protect single quotes in password
+ $pw =~ s/'/'"'"'/g;
+ $tmp.= " -p'$pw'";
+ }
$tmp.= $opt_tcp_ip ? " -h 127.0.0.1" : "";
for ($j = 0; defined($options[$j]); $j++)
{