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

Use the console to delete a standard account

  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 Accounts.
  5. Find the standard account that you want to delete and in the Actions column click Delete.
  6. In the message that appears, click OK.

Execute an SQL statement to delete an standard account

This function is supported only for specific RDS instance configurations.

  1. Use Data Management (DMS) to log on to the RDS instance. For more information, see Use DMS to log on to an ApsaraDB for RDS instance.
  2. In the top navigation bar, choose SQL Operations > SQL Window.
  3. Execute the following statement:
    DROP USER 'username'@'localhost';
  4. Click Execute.

Related operations

Operation Description
DeleteAccount Deletes an account from an ApsaraDB RDS instance.