Delete the database
Here we will talk about two methods for deleting the database: (as follows)
DROP DATABASE database name;
- In this way, if the database we want to delete does not exist, an error will occur when the execution occurs.
DROP DATABASE IF EXISTS database name;
- In this way, if the database we want to delete exists, the deletion will be successful. Even if the database we want to delete does not exist, there will be no errors when the execution is performed at this time.