delete database mysql
snippet in sql

delete database mysql

user2391

 DROP DATABASE dbname;

mysql drop database

user3010

DROP DATABASE ma_base

mysql delete database

user7746

DROP DATABASE dbname

delete database mysql command

user1176

DROP DATABASE databasename

mysql remove database

user7212

mysql> drop database <db_name>;

MySQL DROP DATABASE

user1688

The DROP DATABASE statement drops all tables in the database and deletes the database permanently. Therefore, you should be very careful when using this statement.

The following shows the syntax of the DROP DATABASE statement:

DROP DATABASE [IF EXISTS] database_name;



In MySQL, the schema is the synonym for the database, therefore, you can use them interchangeably:

DROP SCHEMA [IF EXISTS] database_name;