From 1305aea3d897fbc12fd87a9c9be187e27bcb9397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Mon, 4 Dec 2023 22:53:20 +0100 Subject: [PATCH] ci: allow user to connect to db --- bin/install-wp-tests.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index af59ebb..0bb5ac4 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -146,6 +146,7 @@ install_db() { # the mariadb commands are not available on some self-hosted runner images apt update && apt-get install mariadb-server mariadb-client -y service mariadb start + mysql -u root -p"${DB_PASS}" -e "GRANT ALL PRIVILEGES ON *.* TO '${DB_USER}'@'${DB_HOST}' IDENTIFIED BY '${DB_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;" if [ ${SKIP_DB_CREATE} = "true" ]; then return 0