MariaDB upgrade: specify host and port

While mysql_upgrade seems to work on CentOS images without specifying a
host and port, it fails on Ubuntu without these.

Change-Id: Ie140de57c4fe2f2e4db6a90c18e3535d9cc71ff2
Related-Bug: #1820325
This commit is contained in:
Mark Goddard 2019-03-23 10:16:19 +00:00
parent e01cb5735d
commit 3c9c72bad0
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ if [[ "${!KOLLA_UPGRADE[@]}" ]]; then
# There doesn't seem to be anything in the directory, so remove it.
rm -rf /var/lib/mysql/.pki
mysql_upgrade --user=root --password="${DB_ROOT_PASSWORD}"
mysql_upgrade --host=${DB_HOST} --port=${DB_PORT} --user=root --password="${DB_ROOT_PASSWORD}"
exit 0
fi