Skip to content

Commit 45e84b1

Browse files
authored
Merge pull request #207 from wp-cli/regenerate-readme
Regenerate README file
2 parents 4a2c43b + 43f2997 commit 45e84b1

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ wp db
4343
Removes all tables with `$table_prefix` from the database.
4444

4545
~~~
46-
wp db clean [--dbuser=<value>] [--dbpass=<value>] [--yes]
46+
wp db clean [--dbuser=<value>] [--dbpass=<value>] [--yes] [--defaults]
4747
~~~
4848

4949
Runs `DROP_TABLE` for each table that has a `$table_prefix` as specified
@@ -60,6 +60,9 @@ in wp-config.php.
6060
[--yes]
6161
Answer yes to the confirmation message.
6262

63+
[--defaults]
64+
Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
65+
6366
**EXAMPLES**
6467

6568
# Delete all tables that match the current site prefix.
@@ -73,7 +76,7 @@ in wp-config.php.
7376
Creates a new database.
7477

7578
~~~
76-
wp db create [--dbuser=<value>] [--dbpass=<value>]
79+
wp db create [--dbuser=<value>] [--dbpass=<value>] [--defaults]
7780
~~~
7881

7982
Runs `CREATE_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`,
@@ -88,6 +91,9 @@ wp-config.php.
8891
[--dbpass=<value>]
8992
Password to pass to mysql. Defaults to DB_PASSWORD.
9093

94+
[--defaults]
95+
Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
96+
9197
**EXAMPLES**
9298

9399
$ wp db create
@@ -100,7 +106,7 @@ wp-config.php.
100106
Deletes the existing database.
101107

102108
~~~
103-
wp db drop [--dbuser=<value>] [--dbpass=<value>] [--yes]
109+
wp db drop [--dbuser=<value>] [--dbpass=<value>] [--yes] [--defaults]
104110
~~~
105111

106112
Runs `DROP_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`,
@@ -118,6 +124,9 @@ wp-config.php.
118124
[--yes]
119125
Answer yes to the confirmation message.
120126

127+
[--defaults]
128+
Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
129+
121130
**EXAMPLES**
122131

123132
$ wp db drop --yes
@@ -130,7 +139,7 @@ wp-config.php.
130139
Removes all tables from the database.
131140

132141
~~~
133-
wp db reset [--dbuser=<value>] [--dbpass=<value>] [--yes]
142+
wp db reset [--dbuser=<value>] [--dbpass=<value>] [--yes] [--defaults]
134143
~~~
135144

136145
Runs `DROP_DATABASE` and `CREATE_DATABASE` SQL statements using
@@ -148,6 +157,9 @@ specified in wp-config.php.
148157
[--yes]
149158
Answer yes to the confirmation message.
150159

160+
[--defaults]
161+
Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
162+
151163
**EXAMPLES**
152164

153165
$ wp db reset --yes

0 commit comments

Comments
 (0)