drop database
drop database <database_name> [--force]
Deletes a database. This command requires connection to the server database.
Arguments
Argument |
Explanation |
---|---|
database_name |
database name |
Options
Option |
Explanation |
---|---|
–force, -f |
answer yes to confirmation question |
Example
tomas@tomsmbp:~/ > dboo -u=root
dboo root@dboo::server> drop database MyDB
Deleting database 'MyDB'...
Are you sure you want to continue [yes/No]? yes
Database 'MyDB' was deleted.
dboo root@dboo::server>
tomas@tomsmbp:~/ > dboo -u=root -- drop database MyOtherDB Deleting database 'MyOtherDB'...
Are you sure you want to continue [yes/No]? yes
Database 'MyOtherDB' was deleted.
tomas@tomsmbp:~/ >