MySQL

How to drop database in MySQL ?

Nov 8, 2024, 5:15 PM
Blog Thumbnail

The MySQL DROP DATABASE Statement

The DROP DATABASE statement is used to remove and drop an SQL database Existing in database.

Steps:

  1. Open phpMyAdmin in your system.
  2. Click on the SQL tab.
  3. Paste the query DROP DATABASE Testingdatabase;.
  4. Click the "Go" button.
  5. You should see a success message.
  6. Refresh the page to check if the database was Drop/Remove successfully.

Syntax

DROP DATABASE Data_base_name;

Example of Drop a database:

The following SQL statement drop a database called "Testingdatabase":

DROP DATABASE Testingdatabase;