mysql how to delete a database code example Example 1: mysql delete database DROP DATABASE dbname Example 2: delete database mysql command DROP DATABASE databasename