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

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.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.