How do I drop a database in MySQL?

8:48 PM

In order to drop a database, you can run the following commands:

Dropping a MySQL Database

  1. Login into MySQL
    • mysql -uroot -p
  2. Drop the database from MySQL
    • DROP DATABASE database_name;
      NOTE - Make sure you want to do this before issuing the command or back this up first if you need to so you can restore the same if you make a mistake

You Might Also Like

0 comments

Contact Form

Name

Email *

Message *

Translate

Wikipedia

Search results