Wp db drop (WP-CLI)
Naar navigatie springen
Naar zoeken springen
NAME wp db drop DESCRIPTION Deletes the existing database. SYNOPSIS wp db drop [--dbuser=<value>] [--dbpass=<value>] [--yes] Runs `DROP_DATABASE` SQL statement using `DB_HOST`, `DB_NAME`, `DB_USER` and `DB_PASSWORD` database credentials specified in wp-config.php. OPTIONS [--dbuser=<value>] Username to pass to mysql. Defaults to DB_USER. [--dbpass=<value>] Password to pass to mysql. Defaults to DB_PASSWORD. [--yes] Answer yes to the confirmation message. EXAMPLES $ wp db drop --yes Success: Database dropped.