wp db optimize
Optimizes the database
Options
Name | Description |
---|---|
--dbuser <value> | Username to pass to mysqlcheck. Defaults to DB_USER |
--dbpass <value> | Password to pass to mysqlcheck. Defaults to DB_PASSWORD |
--field=value | Extra arguments to pass to mysqldump. Refer to mysqldump docs |
--defaults | Loads the environment’s MySQL option files. Default behavior is to skip loading them to avoid failures due to misconfiguration |