From 4890c8d5b05030966686c1e3f198b736b829a3c0 Mon Sep 17 00:00:00 2001 From: Jacob Cody Wimer Date: Wed, 3 Feb 2016 08:16:01 -0500 Subject: [PATCH] Normal create user statement for haproxy_check --- roles/db/tasks/startcluster.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/db/tasks/startcluster.yml b/roles/db/tasks/startcluster.yml index 08715b0..96fa9b1 100644 --- a/roles/db/tasks/startcluster.yml +++ b/roles/db/tasks/startcluster.yml @@ -9,7 +9,7 @@ action: shell mysql -e "CREATE DATABASE wrestlingtourney;" - name: Set up haproxy_check user - action: shell mysql -u root -p -e "INSERT INTO mysql.user (Host,User) values ('%','haproxy_check'); FLUSH PRIVILEGES;" + action: shell mysql -u root -p -e "CREATE USER 'haproxy_check'@'%'; FLUSH PRIVILEGES;" - name: Set up user for wrestlingtourney action: shell mysql -u root -p -e "CREATE USER 'heroku_jcw'@'%' IDENTIFIED BY '($heroku_jcw_password)';GRANT ALL PRIVILEGES ON wrestlingtourney.* TO 'heroku_jcw'@'%'; FLUSH PRIVILEGES;"