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. Visit the RDS instance list, select a region above, and click the target instance ID.
  2. In the left-side navigation pane, click Accounts.
  3. Find the standard account that you want to delete and in the Actions column click Delete.
  4. 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 RDS for MySQL 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.