-
Committer:
Vladislav Vaintroub
-
Date:
2012-04-16 13:28:33 UTC
-
mto:
(2732.53.30 5.2-push)
-
mto:
This revision was merged to the branch mainline in
revision
3501.
-
Revision ID:
wlad@montyprogram.com-20120416132833-kjz2qqldkck8vgee
MDEV-221 - Properly escape command line when starting mysql_install_db
since password characters can contain quotes or spaces.
The proper quoting method for command line arguments used here was extracted from
http://blogs.msdn.com/b/twistylittlepassagesallalike/archive/2011/04/23/everyone-quotes-arguments-the-wrong-way.aspx
Additionally, mysql_install_db.exe now passes root password to "mysqld.exe --bootstrap"
in hexadecimal form, to handle potential special chars inside password string literal.