Syntax
Deletes the database and all of its objects including tables, views and aggregating indexes.DROP DATABASE [IF EXISTS] <database_name>
Parameters
| Parameter | Description |
|---|---|
<database_name> | The name of the database to be deleted |
Restrictions
A database cannot be dropped if it is used as a default database for any engine. To check which engines are using a specific database as their default, run the following query:ALTER ENGINE command.
For more information, see:
information_schema.engines- View engine configuration detailsALTER ENGINE- Change engine settings including the default database