How To Drop MySQL Database?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/mysql-drop-database/
PINTEREST
PINTEREST
INSTAGRAM

MySQL is very popular opensource database it is used by a lot of different type and size companies. In this post we will look how to drop or delete MySQL databases?

Login MySQL Database

Dropping/Deleting/Removing a database in MySQL server is simple and fast solution which will delete data as well as table and database schemes. We will command to the local MySQL server daemon whit root privileges.

Login MySQL Database
Login MySQL Database

List Databases

We will list existing databases to get database name and do not make mistake.

List Databases
List Databases

Drop Database

We will drop database names test. Syntax of drop is simple like below. We issue command DROP DATABASE and provide database name as in this example test.

Drop Database
Drop Database

Drop All Tables In A Database

Another alternative is dropping all tables one by one or with a simple script. Here database will be not removed but the tables of the database will be deleted.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/mysql-drop-database/
PINTEREST
PINTEREST
INSTAGRAM