Skip to content

Commit

Permalink
Ignore mysql version mismatch for upgrade w/a
Browse files Browse the repository at this point in the history
Use 'mysql_upgrade --skip-version-check' when truing to fix
mysqlcheck failure.

Signed-off-by: Bohdan Dobrelia <[email protected]>
  • Loading branch information
bogdando committed Jan 10, 2025
1 parent dba299c commit 13034e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/roles/get_services_configuration/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# Try mysql_upgrade to fix mysqlcheck failure
for CELL in $(echo $CELLS); do
MYSQL_UPGRADE=$(oc run mariadb-client-3-$CELL ${MARIADB_CLIENT_ANNOTATIONS} -q --image ${MARIADB_IMAGE} -i --rm --restart=Never -- \
mysql_upgrade -v -h ${SOURCE_MARIADB_IP[$CELL]} -u root -p"${SOURCE_DB_ROOT_PASSWORD[$CELL]}")
mysql_upgrade --skip-version-check -v -h ${SOURCE_MARIADB_IP[$CELL]} -u root -p"${SOURCE_DB_ROOT_PASSWORD[$CELL]}")
# rerun mysqlcheck to check if problem is resolved
run_mysqlcheck
done
Expand Down

0 comments on commit 13034e5

Please sign in to comment.