MilesWeb Hosting Forum

Web Hosting Technical Support => How To's => Topic started by: Dipak Bhoi on May 16, 2015, 05:12:33 PM

Title: How to delete database from shell/command line?
Post by: Dipak Bhoi on May 16, 2015, 05:12:33 PM
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 !!! :) :)