How to delete database from shell/command line?

Started by Dipak Bhoi, May 16, 2015, 05:12:33 PM

Previous topic - Next topic

Dipak Bhoi

Hello folks,

It's easy to delete database from phpMyAdmin but below is a command which helps you to delete database through shell.

Login to server via ssh and access mysql> prompt and hit command as below:

Quotemysql>DROP DATABASE mydata_database;

You can alos verify database is deleted or not run below command.

Quotemysql> SHOW DATABASES;

That's all.

Enjoy !!! :) :)





MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.