MySql "DROP DATABASE" query syntax with example

In this article we will see "How to DROP a Database in MySql" and "MySql DROP DATABASE query syntax with example".

"DROP DATABASE" query syntax

"DROP DATABASE" is used to DROP a Database in MySql, the syntax is as follow.


DROP DATABASE databaseName;

"DROP DATABASE" query example

"DROP DATABASE" is used to DROP a Database in MySql, as shown in the example below.


DROP DATABASE testDatabase;

In this article we have seen"How to DROP a Database in MySql", in upcoming articles we will see more about Mysql syntax and queries with example.

About The Author

Nagesh Chauhan

Nagesh Chauhan has 8+ years of software design and development experience in variety of technologies like - Core Java, Java 8 (Streams, Lambda), J2EE (Servlet, JSP), Spring Framework (MVC, IOC, JDBC, SECURITY etc), Spring Boot and Microservices, Kafla, Redis, Cassandra and Spark.