Код:
DROP DATABASE `database_name`;
By default the "DROP DATABASE" statement is disabled. You'll have to set "AllowUserDropDatabase" to true in "config.inc.php" file. I haven't tried running such an SQL command through server. I doubt your connection to MySQL server will be lost in case if the database which was referred in "mysql_connect" got removed.