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