Reputation: 107
how can i delete the database that i am in it in mysql? without knowing the name of the database
DROP DATABASE()
Upvotes: 0
Views: 992
Reputation: 1585
You can first find the name of current dbname as follow code.
SELECT database()
With this query you'll get the current db name. And after that, just say;
DROP DATABASE databaseName
Upvotes: 2