mysql 5.1 does not have implicit user creation so we do need to have the create user statement

This commit is contained in:
Manuel Amador (Rudd-O) 2010-09-01 22:28:49 -05:00
parent 10d62a5fe6
commit dcbf49d098
1 changed files with 3 additions and 1 deletions

View File

@ -301,7 +301,9 @@ if rootuser:
replacements = (
("CREATE USER cloud identified by 'cloud';",
""),
"CREATE USER %s@`localhost` identified by '%s'; CREATE USER %s@`%%` identified by '%s';"%(
(user,password,user,password)
)),
("cloud identified by 'cloud';",
"%s identified by '%s';"%(user,password)),
("cloud@`localhost` identified by 'cloud'",