MySQL

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

Written by Ian Carnaghan · 11 sec read >

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.

Last Updated On March 23, 2018
Written by Ian Carnaghan
I am a software developer and online educator who likes to keep up with all the latest in technology. I also manage cloud infrastructure, continuous monitoring, DevOps processes, security, and continuous integration and deployment. Profile

Leave a Reply

avatar
  Subscribe  
Notify of