delete mysql database cli code example Example 1: mysql delete database DROP DATABASE dbname Example 2: delete database mysql command DROP DATABASE databasename