diff --git a/mysql-init/build.yml b/mysql-init/build.yml index 7f783dfe1..7c176da0e 100644 --- a/mysql-init/build.yml +++ b/mysql-init/build.yml @@ -2,6 +2,6 @@ repository: monasca/mysql-init variants: - tag: latest aliases: - - :1.5.4 + - :1.5.5 - :1.5 - :1 diff --git a/mysql-init/mysql-init.d/02-users.sql.j2 b/mysql-init/mysql-init.d/02-users.sql.j2 index 00c7512b6..bd4410238 100644 --- a/mysql-init/mysql-init.d/02-users.sql.j2 +++ b/mysql-init/mysql-init.d/02-users.sql.j2 @@ -16,4 +16,5 @@ GRANT ALL ON {{ db }}.* TO '{{ monapi_user }}'@'%' IDENTIFIED BY '{{ monapi_pw } GRANT ALL ON {{ db }}.* TO '{{ monapi_user }}'@'localhost' IDENTIFIED BY '{{ monapi_pw }}'; GRANT ALL ON {{ db }}.* TO '{{ thresh_user }}'@'%' IDENTIFIED BY '{{ thresh_pw }}'; GRANT ALL ON {{ db }}.* TO '{{ thresh_user }}'@'localhost' IDENTIFIED BY '{{ thresh_pw }}'; +FLUSH PRIVILEGES; {%- endif %}