You can delete accounts, including a privileged account and standard accounts of an ApsaraDB RDS for MySQL instance that you no longer use, in the ApsaraDB RDS console or by calling API operations. You can also execute SQL statements to delete standard accounts.
Delete a privileged or standard account in the ApsaraDB RDS console
- Go to the Instances page. In the top navigation bar, select the region in which the RDS instance resides. Then, find the RDS instance and click the ID of the instance.
In the left-side navigation pane, click Accounts.
Find the account that you want to delete, and click Delete in the Actions column.
In the dialog box that appears, click OK.
Delete a standard account by using SQL statements
This feature is supported only for specific RDS instance types. The privileged account cannot be deleted by using SQL statements.
Use DMS to log on to an RDS instance. For more information, see Use DMS to log on to an RDS instance.
In the top navigation bar, choose
.Execute the following statement:
DROP USER 'username';
Click Execute.
Related operations
Operation | Description |
Deletes a privileged or standard account. |