Skip to content

fix: standalone_mysql deploy template#2

Draft
exuanbo wants to merge 1 commit into
llnut:mainfrom
exuanbo:db-password
Draft

fix: standalone_mysql deploy template#2
exuanbo wants to merge 1 commit into
llnut:mainfrom
exuanbo:db-password

Conversation

@exuanbo
Copy link
Copy Markdown

@exuanbo exuanbo commented May 15, 2026

Hi,

I'm not sure if this is the expected behavior, but on my machine

MYSQL_PASSWORD="${3:-${CUR_MAIN_DB_ROOT_PASSWORD:-$DNF_DB_ROOT_PASSWORD}}"

always have the default 88888888 value, so wait_for_mysql.sh hangs silently until it errors after the max retries.

CUR_MAIN_DB_ROOT_PASSWORD is set here

# 定义主数据库局部变量,优先使用MAIN_MYSQL_*,回退到MYSQL_*
CUR_MAIN_DB_HOST=${MAIN_MYSQL_HOST:-$MYSQL_HOST}
CUR_MAIN_DB_PORT=${MAIN_MYSQL_PORT:-$MYSQL_PORT}
CUR_MAIN_DB_ROOT_PASSWORD=${MAIN_MYSQL_ROOT_PASSWORD:-$DNF_DB_ROOT_PASSWORD}
CUR_MAIN_DB_GAME_ALLOW_IP=${MAIN_MYSQL_GAME_ALLOW_IP:-$MYSQL_GAME_ALLOW_IP}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant