Merge "bnr - Remove the filter to backup the root grants [mysql]" into stable/train

This commit is contained in:
Zuul 2021-12-22 19:05:03 +00:00 committed by Gerrit Code Review
commit b33463b20b
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@
{{ tripleo_container_cli }} exec {{ tripleo_backup_and_restore_mysql_container }} bash -c "mysql -uroot \
-p{{ mysql_password.stdout }} -s -N \
-e \"SELECT CONCAT('\\\"SHOW GRANTS FOR ''',user,'''@''',host,''';\\\"') \
FROM mysql.user where (length(user) > 0 and user NOT LIKE 'root' and \
FROM mysql.user where (length(user) > 0 and \
(Host = 'localhost' or Host='%' or IS_IPV4(Host) or IS_IPV6(Host)))\" | xargs -n1 mysql \
-uroot -p{{ mysql_password.stdout }} -s -N -e | sed 's/$/;/' " > {{ tripleo_backup_and_restore_mysql_grants_file }}
when: mysql_password.stderr is defined