Drop database
suggest changeUseful in scripts. This drops every table and then deletes the database:
mysqladmin -u [username] -p[password] drop [database]
mysqladmin asks for confirmation unless you pass --force. There must be no space between -p and the password. Use with extreme caution. DROP privilege on the database is required.
To DROP database as a SQL Script (you will need DROP privilege on that database):
DROP DATABASE database_name
or
DROP SCHEMA database_name
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents