Fri, 17 May 2024


How to delete an entire MySQL database?

By: Nathalie, NetArt Media
Wed, 6 May 2020

The mysql_drop_db should be used for this purpose.

The function syntax is as follows:

bool mysql_drop_db ( string database_name)

the function returns TRUE on success, FALSE on failure.


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox