diff options
| author | Mark Goddard <mark@stackhpc.com> | 2019-03-23 10:16:19 +0000 |
|---|---|---|
| committer | Mark Goddard <mark@stackhpc.com> | 2019-03-23 10:16:19 +0000 |
| commit | 3c9c72bad0b1ed4b61a5ed02a36c01c1455dc9bf (patch) | |
| tree | eb55a5dd9e18d5a6b6f3c2a2f38598c4060d3f49 | |
| parent | e01cb5735ddc7e42f5d16e9fe84467e6a55b7618 (diff) | |
| download | kolla-3c9c72bad0b1ed4b61a5ed02a36c01c1455dc9bf.tar.gz kolla-3c9c72bad0b1ed4b61a5ed02a36c01c1455dc9bf.zip | |
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
| -rw-r--r-- | docker/mariadb/extend_start.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/mariadb/extend_start.sh b/docker/mariadb/extend_start.sh index 88be89d02..c07c00a9e 100644 --- a/docker/mariadb/extend_start.sh +++ b/docker/mariadb/extend_start.sh @@ -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 |
