From 058490a609108bf0709117d42710ad3f7ee28d70 Mon Sep 17 00:00:00 2001 From: Lingxian Kong Date: Sat, 18 Jul 2020 21:55:20 +1200 Subject: [PATCH] Fix the slow start of mariadb container Adding '-e MYSQL_INITDB_SKIP_TZINFO=1' when starting database container. Ref: https://github.com/docker-library/mariadb/issues/262 Change-Id: I3398557700dd76ec831e441ba074032fd4b67cca --- trove/guestagent/datastore/mysql_common/service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/trove/guestagent/datastore/mysql_common/service.py b/trove/guestagent/datastore/mysql_common/service.py index 87abb82d13..937405df25 100644 --- a/trove/guestagent/datastore/mysql_common/service.py +++ b/trove/guestagent/datastore/mysql_common/service.py @@ -626,6 +626,7 @@ class BaseMySqlApp(object): user=user, environment={ "MYSQL_ROOT_PASSWORD": root_pass, + "MYSQL_INITDB_SKIP_TZINFO": 1, }, command=command )