Ubuntu: How to drop a MySql database

Login as MySQL root or admin user:

$ mysql -u root -p

empty_mysql_2

Now lets drop database ‘otrs’ using below command:

mysql> DROP DATABASE otrs;

empty_mysql_3

Lets create the same database again using below command:

mysql> CREATE DATABASE otrs;

empty_mysql_5once done, close the session

mysql> quit

empty_mysql_6


About Vineesh Mohan

A Technical Support specialist with strong customer service and good communication skills. I live in the city of Cochin, which known as the Queen of Arabian Sea.
Posted in MySQL, Ubuntu. Bookmark the permalink.