Mysql : stunnel configuration

parent 19db1417
...@@ -57,6 +57,7 @@ class Recipe(BaseSlapRecipe): ...@@ -57,6 +57,7 @@ class Recipe(BaseSlapRecipe):
self.linkBinary() self.linkBinary()
self.setConnectionDict(dict( self.setConnectionDict(dict(
mysql_local_ip = mysql_conf['tcp_port'],
stunnel_ip = stunnel_conf['ip'], stunnel_ip = stunnel_conf['ip'],
stunnel_port = stunnel_conf['port'], stunnel_port = stunnel_conf['port'],
mysql_database = mysql_conf['mysql_database'], mysql_database = mysql_conf['mysql_database'],
......
CREATE DATABASE IF NOT EXISTS %(mysql_database)s; CREATE DATABASE IF NOT EXISTS %(mysql_database)s;
GRANT ALL PRIVILEGES ON %(mysql_database)s.* TO %(mysql_user)s@'%%' IDENTIFIED BY '%(mysql_password)s'; ;GRANT ALL PRIVILEGES ON %(mysql_database)s.* TO %(mysql_user)s@'%%' IDENTIFIED BY '%(mysql_password)s';
GRANT ALL PRIVILEGES ON %(mysql_database)s.* TO %(mysql_user)s@* IDENTIFIED BY '%(mysql_password)s';
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment