From 145cfba901ab33475c2a480184aef93d6a84d975 Mon Sep 17 00:00:00 2001 From: Nicolas R Date: Thu, 24 Aug 2023 15:16:37 -0400 Subject: [PATCH] Use host when checking MySQL server --- bin/install-package-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/install-package-tests b/bin/install-package-tests index 25753243..841c268b 100755 --- a/bin/install-package-tests +++ b/bin/install-package-tests @@ -48,7 +48,7 @@ if [ -n "${WP_CLI_TEST_DBPASS}" ]; then fi echo 'Checking if MySQL is ready...' -while ! mysql --user="${USER}" "${PASSWORD_STRING}" --execute="SHOW DATABASES;" | grep 'information_schema' >/dev/null; +while ! mysql ${HOST_STRING} --user="${USER}" "${PASSWORD_STRING}" --execute="SHOW DATABASES;" | grep 'information_schema' >/dev/null; do echo 'Waiting for MySQL...' sleep 5