You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: features/config-create.feature
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -247,8 +247,9 @@ Feature: Create a wp-config file
247
247
Scenario: Configure with required SSL connection
248
248
Given an empty directory
249
249
And WP files
250
-
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' mysql -u root -h{MYSQL_HOST} -P{MYSQL_PORT} -e "CREATE USER IF NOT EXISTS 'wp_cli_test_ssl'@'127.0.0.1' IDENTIFIED BY 'password2';"`
251
-
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' mysql -u root -h{MYSQL_HOST} -P{MYSQL_PORT} -e "ALTER user 'wp_cli_test_ssl'@'127.0.0.1' REQUIRE SSL;"`
250
+
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "CREATE USER IF NOT EXISTS 'wp_cli_test_ssl'@'127.0.0.1';"`
251
+
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "SET PASSWORD FOR 'wp_cli_test_ssl'@'127.0.0.1' = 'password2';"`
252
+
And I run `MYSQL_PWD='{DB_ROOT_PASSWORD}' MYSQL_HOST='{MYSQL_HOST}' MYSQL_TCP_PORT='{MYSQL_PORT}' mysql -u root -e "ALTER user 'wp_cli_test_ssl'@'127.0.0.1' REQUIRE SSL;"`
252
253
253
254
When I try `wp config create --dbhost=127.0.0.1 --dbname=wp_cli_test --dbuser=wp_cli_test_ssl --dbpass=password2 --ssl`
0 commit comments