4343Removes 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
4949Runs ` 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.
7376Creates a new database.
7477
7578~~~
76- wp db create [--dbuser=<value>] [--dbpass=<value>]
79+ wp db create [--dbuser=<value>] [--dbpass=<value>] [--defaults]
7780~~~
7881
7982Runs ` 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.
100106Deletes 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
106112Runs ` 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.
130139Removes 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
136145Runs ` 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