[bitnami/mariadb] fix healthcheck during initialization using skip-networking (#77005)

This commit is contained in:
Olivier Boudet 2025-02-06 16:25:50 +01:00 committed by GitHub
parent 8c5a20528b
commit 302a8ff517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ mysql_start_bg() {
local -a flags=("--defaults-file=${DB_CONF_FILE}" "--basedir=${DB_BASE_DIR}" "--datadir=${DB_DATA_DIR}" "--socket=${DB_SOCKET_FILE}")
# Only allow local connections until MySQL is fully initialized, to avoid apps trying to connect to MySQL before it is fully initialized
flags+=("--bind-address=127.0.0.1")
flags+=("--skip-networking")
# Add flags specified via the 'DB_EXTRA_FLAGS' environment variable
read -r -a db_extra_flags <<< "$(mysql_extra_flags)"