43
43
Removes all tables with ` $table_prefix ` from the database.
44
44
45
45
~~~
46
- wp db clean [--dbuser=<value>] [--dbpass=<value>] [--yes]
46
+ wp db clean [--dbuser=<value>] [--dbpass=<value>] [--yes] [--defaults]
47
47
~~~
48
48
49
49
Runs ` DROP_TABLE ` for each table that has a ` $table_prefix ` as specified
@@ -60,6 +60,9 @@ in wp-config.php.
60
60
[--yes]
61
61
Answer yes to the confirmation message.
62
62
63
+ [--defaults]
64
+ Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
65
+
63
66
** EXAMPLES**
64
67
65
68
# Delete all tables that match the current site prefix.
@@ -73,7 +76,7 @@ in wp-config.php.
73
76
Creates a new database.
74
77
75
78
~~~
76
- wp db create [--dbuser=<value>] [--dbpass=<value>]
79
+ wp db create [--dbuser=<value>] [--dbpass=<value>] [--defaults]
77
80
~~~
78
81
79
82
Runs ` CREATE_DATABASE ` SQL statement using ` DB_HOST ` , ` DB_NAME ` ,
@@ -88,6 +91,9 @@ wp-config.php.
88
91
[--dbpass=<value>]
89
92
Password to pass to mysql. Defaults to DB_PASSWORD.
90
93
94
+ [--defaults]
95
+ Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
96
+
91
97
** EXAMPLES**
92
98
93
99
$ wp db create
@@ -100,7 +106,7 @@ wp-config.php.
100
106
Deletes the existing database.
101
107
102
108
~~~
103
- wp db drop [--dbuser=<value>] [--dbpass=<value>] [--yes]
109
+ wp db drop [--dbuser=<value>] [--dbpass=<value>] [--yes] [--defaults]
104
110
~~~
105
111
106
112
Runs ` DROP_DATABASE ` SQL statement using ` DB_HOST ` , ` DB_NAME ` ,
@@ -118,6 +124,9 @@ wp-config.php.
118
124
[--yes]
119
125
Answer yes to the confirmation message.
120
126
127
+ [--defaults]
128
+ Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
129
+
121
130
** EXAMPLES**
122
131
123
132
$ wp db drop --yes
@@ -130,7 +139,7 @@ wp-config.php.
130
139
Removes all tables from the database.
131
140
132
141
~~~
133
- wp db reset [--dbuser=<value>] [--dbpass=<value>] [--yes]
142
+ wp db reset [--dbuser=<value>] [--dbpass=<value>] [--yes] [--defaults]
134
143
~~~
135
144
136
145
Runs ` DROP_DATABASE ` and ` CREATE_DATABASE ` SQL statements using
@@ -148,6 +157,9 @@ specified in wp-config.php.
148
157
[--yes]
149
158
Answer yes to the confirmation message.
150
159
160
+ [--defaults]
161
+ Loads the environment's MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration.
162
+
151
163
** EXAMPLES**
152
164
153
165
$ wp db reset --yes
0 commit comments