This topic describes how to delete a database from an ApsaraDB RDS for MySQL instance. You can delete a database by using the ApsaraDB RDS console or an SQL statement.

Delete a database by using the ApsaraDB RDS console

  1. Log on to the ApsaraDB for RDS console.
  2. In the left-side navigation pane, click Instances. In the top navigation bar, select the region where your RDS instance resides.
    Select a region
  3. Find your RDS instance and click its ID.
  4. In the left-side navigation pane, click Databases.
  5. Find the database that you want to delete and in the Actions column click Delete.
  6. In the message that appears, click OK.

Delete a database by using an SQL statement

  1. Connect to the RDS instance to which the database belongs. For more information, see Connect to an ApsaraDB RDS for MySQL instance.
  2. Execute the following statement to delete the database:
    drop database <database name>;

Related operations

Operation Description
DeleteDatabase Deletes a database from an ApsaraDB RDS instance.