As an administrator, open the MySQL Workbench (Right-click, Run as Admin). To construct the database schema, go to File>Create Schema. Click Apply after giving the schema a name. To perform the SQL command that creates the schema, click Apply in the Apply SQL Script to Database window.
To begin, open the MySQL workbench and connect to the MySQL Server. Second, right-click the database you wish to get rid of, such as testdb2, and select Drop Schema. Finally, MySQL Workbench shows a confirmation window to confirm the deletion.
You can use a comma-separated list of database names after the Delete DATABASE clause to drop several databases with a single command. From SQL Server 2016, the IF EXISTS option is available. It allows you to remove a database conditionally only if it already exists.
In the MySQL shell, type the following statement to remove a table permanently: DROP TABLE table1; Replace table1 with the name of the table to be removed. The table has been eliminated, according to the output.