Drop database

suggest change

Useful 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents