From a177cf16823fb617d851cc74f2cc3b25d098dac4 Mon Sep 17 00:00:00 2001 From: Hexeong <123macanic@naver.com> Date: Fri, 10 Jul 2026 13:42:59 +0900 Subject: [PATCH] =?UTF-8?q?hotfix:=20mysql=20root=20=EC=9C=A0=EC=A0=80=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=20=ED=8A=B8=EB=A6=AC=EA=B1=B0=EB=A5=BC=20roo?= =?UTF-8?q?t=20=EC=9D=B8=EC=A6=9D=20+=20=EC=BF=BC=EB=A6=AC=20=EC=8B=A4?= =?UTF-8?q?=ED=96=89=20=EC=84=B1=EA=B3=B5=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/app_stack/scripts/mysql_setup.sh.tftpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/app_stack/scripts/mysql_setup.sh.tftpl b/modules/app_stack/scripts/mysql_setup.sh.tftpl index 75ae358..2c1c21e 100644 --- a/modules/app_stack/scripts/mysql_setup.sh.tftpl +++ b/modules/app_stack/scripts/mysql_setup.sh.tftpl @@ -113,8 +113,8 @@ docker run -d \ mysql:8.4.8 MYSQL_READY=false -for i in $(seq 1 30); do - if docker exec mysql-server mysqladmin ping -uroot -p"$DB_ROOT_PASS" 2>/dev/null; then +for i in $(seq 1 90); do + if docker exec mysql-server mysql -uroot -p"$DB_ROOT_PASS" -e "SELECT 1" >/dev/null 2>&1; then MYSQL_READY=true break fi @@ -122,7 +122,7 @@ for i in $(seq 1 30); do done if [ "$MYSQL_READY" != "true" ]; then - echo "MySQL container did not become ready within 60 seconds." >&2 + echo "MySQL container did not become ready for authenticated root queries within 180 seconds." >&2 docker logs --tail 100 mysql-server >&2 || true exit 1 fi