File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 44
55# Prepare the database for running the tests
66install_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
1213install_db
You can’t perform that action at this time.
0 commit comments