MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to delete database from shell/command line?  (Read 3601 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
How to delete database from shell/command line?
« 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:

Quote
mysql>DROP DATABASE mydata_database;

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

Quote
mysql> SHOW DATABASES;

That's all.

Enjoy !!! :) :)





« Last Edit: May 20, 2015, 12:23:18 PM by Dipak Bhoi »
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

How to delete database from shell/command line?
« on: May 16, 2015, 05:12:33 PM »