From: Angus Salkeld Date: Fri, 4 May 2012 01:21:55 +0000 (+1000) Subject: Fix the sql in the rails template (didn't work with the mysql in f16) X-Git-Tag: 2014.1~1882 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=6bae53753bff2bf1062a1fdea2ee5963e6ed6b65;p=openstack-build%2Fheat-build.git Fix the sql in the rails template (didn't work with the mysql in f16) Signed-off-by: Angus Salkeld --- diff --git a/templates/Rails_Single_Instance.template b/templates/Rails_Single_Instance.template index 6149ad6a..6c5e1c0f 100644 --- a/templates/Rails_Single_Instance.template +++ b/templates/Rails_Single_Instance.template @@ -147,9 +147,11 @@ "files" : { "/tmp/setup.mysql" : { "content" : { "Fn::Join" : ["", [ - "CREATE USER '", { "Ref" : "DBUsername" }, "'@'localhost' IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n", - "GRANT ALL ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost';\n", - "FLUSH PRIVILEGES;\n" + "CREATE DATABASE ", { "Ref" : "DBName" }, ";\n", + "GRANT ALL PRIVILEGES ON ", { "Ref" : "DBName" }, ".* TO '", { "Ref" : "DBUsername" }, "'@'localhost'\n", + "IDENTIFIED BY '", { "Ref" : "DBPassword" }, "';\n", + "FLUSH PRIVILEGES;\n", + "EXIT\n" ]]}, "mode" : "000644", "owner" : "root",