From 466ed7dc2b9a04d056ba405904b2862172b8f308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Mon, 4 Dec 2023 23:09:38 +0100 Subject: [PATCH] ci: fix sequence --- bin/install-wp-tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/install-wp-tests.sh b/bin/install-wp-tests.sh index d0a3663..d1c0663 100755 --- a/bin/install-wp-tests.sh +++ b/bin/install-wp-tests.sh @@ -140,13 +140,14 @@ recreate_db() { create_db() { mysqladmin create $DB_NAME --user="$DB_USER" --password="$DB_PASS" $EXTRA + mysql -u root -p "${DB_PASS}" -e "GRANT ALL PRIVILEGES ON *.* TO '${DB_USER}'@'localhost' IDENTIFIED BY '${DB_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;" + } 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}'@'localhost' IDENTIFIED BY '${DB_PASS}' WITH GRANT OPTION; FLUSH PRIVILEGES;" if [ ${SKIP_DB_CREATE} = "true" ]; then return 0