How do I delete a MySQL database?

To delete a database, open terminal and login to your MySQL, if you don’t have a password leave it blank. If your default user isn’t ROOT you’ll want to change that to your id =]

mysql -u root -p YOURPASSWORD
drop database DATABASENAME;

Note: don’t forget your semicolon and be careful!

Back to Blog