How to drop a entire MySql Database on the command line in Linux

No Comments

Login to the MySql command line using something like the following

mysql -uUSERNAME -pPASSWORD

Then execute the following command to Drop the desired Database

DROP TABLE MYDATABASE;

Replace MYDATABASE with the Database name that you want to Drop

Note: Please note that this can’t be undone, so please create a backup before proceeding.

Image Credits: Photo by Isis França on Unsplash.

Last Updated On March 23, 2018

Related Articles

No results found

Leave a Reply

avatar
  Subscribe  
Notify of
Menu
Copy link