del mysql db code example Example 1: delete database mysql DROP DATABASE dbname; Example 2: delete database mysql command DROP DATABASE databasename