Skip to content

Commit 7fcd1b6

Browse files
committed
fix missing mysql def in script
1 parent 4257dd6 commit 7fcd1b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/integration/targets/test_mysql_replication/tasks/mysql_replication_group.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
IDENTIFIED {% if db_engine == 'mysql' %}WITH mysql_native_password {% endif %}BY '{{ group_replication_pass }}'; \
1818
GRANT REPLICATION SLAVE ON *.* TO \
1919
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
20+
GRANT CONNECTION_ADMIN ON *.* TO \
21+
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
2022
GRANT BACKUP_ADMIN ON *.* TO \
2123
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
2224
GRANT GROUP_REPLICATION_STREAM ON *.* TO \
23-
'{{ group_replication_user }}'@'{{ mysql_host }}';\" | {{ mysql_command }}"
24-
when: db_version is version('8.0.0', '>=')
25+
'{{ group_replication_user }}'@'{{ mysql_host }}'; \
26+
FLUSH PRIVILEGES;\" | {{ mysql_command }}"
27+
when: db_engine == 'mysql' and db_version is version('8.0.0', '>=')
2528

2629
- name: Create group replication user for MariaDB
2730
shell:

0 commit comments

Comments
 (0)