Skip to content

Commit 2faff80

Browse files
authored
Merge pull request #87 from vbelolapotkov/update/install-package-tests
Update install-package-tests
2 parents 7270449 + 0e65132 commit 2faff80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bin/install-package-tests

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ set -ex
44

55
# Prepare the database for running the tests
66
install_db() {
7-
mysql -e 'CREATE DATABASE IF NOT EXISTS wp_cli_test;' -uroot
8-
mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot
9-
mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test_scaffold.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot
7+
mysql -e 'CREATE DATABASE IF NOT EXISTS wp_cli_test;' -uroot -p${DB_PASSWORD}
8+
mysql -e 'CREATE USER "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot -p${DB_PASSWORD}
9+
mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost"' -uroot -p${DB_PASSWORD}
10+
mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test_scaffold.* TO "wp_cli_test"@"localhost"' -uroot -p${DB_PASSWORD}
1011
}
1112

1213
install_db

0 commit comments

Comments
 (0)