skip to Main Content

In phpmyadmin, we can drop a specific database from operation tab and by hitting “DROP THE DATABASE (DROP)”. But I need to drop a specific database using command prompt or terminal.

2

Answers


  1. Use mysqladmin like

    mysqladmin -uroot -pyourpassword drop database_name
    

    In this case User: root with password: yourpassword will delete database database_name

    You will get a warning and have to verify it

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search