From dcbf49d098c418ff64ac4605e6e579ee1b35d0bb Mon Sep 17 00:00:00 2001 From: "Manuel Amador (Rudd-O)" Date: Wed, 1 Sep 2010 22:28:49 -0500 Subject: [PATCH] mysql 5.1 does not have implicit user creation so we do need to have the create user statement --- setup/bindir/cloud-setup-databases.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/bindir/cloud-setup-databases.in b/setup/bindir/cloud-setup-databases.in index 3853bec9cc3..067ff7b2156 100755 --- a/setup/bindir/cloud-setup-databases.in +++ b/setup/bindir/cloud-setup-databases.in @@ -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'",