Skip to content
Studyraft
Menu
  • About
  • Contact Us
  • Privacy Policy

MySQL drop database if exists

May 01 2022December 9, 2022

Below is the query in MySQL to drop the database by checking if exists before:

DROP DATABASE IF EXISTS YourDbName;

Replace YourDbName with your own db name in the above query.

Related Posts:

  • Get the total count of stored procedures in MySQL database
  • Delete a user in MySQL if exists
  • How to install WordPress on Mac
  • toBeTruthy does not exist on type Assertion
  • zsh: command not found: mysql
May 01 2022December 9, 2022

© 2023 Studyraft