Name

mysql_drop_db( )

Synopsis

mysql_drop_db(database[, connection])

Use this to delete the database given from the MySQL server. A different connection identifier may be given as a second argument. The function returns true if it’s successful; it returns false if it’s unsuccessful. This function has been deprecated. Use the mysql_query( ) function with a DROP DATABASE statement instead.

...
mysql_dropdb('old_db');
...

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.