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

H

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.

About the author

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.

About Author

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.

Follow Me