This topic describes how to manage a database account, such as how to change the password, lock or unlock an account, and delete an account.
Background information
Create a database account
For more information, see Create a database account.
Change the password
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the left-side navigation pane, choose .
- Find the account for which you want to change the password and click Change Password in the Actions column.
- In the dialog box that appears, enter New Password and Confirm New Password and click OK.
Lock an account
You can lock an account. This way, the account is not allowed to log on to the database.
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the left-side navigation pane, choose .
- Find the account that you want to manage and turn on the switch in the Lock Status column.
Unlock an account.
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the left-side navigation pane, choose .
- Find the account that you want to manage and turn off the switch in the Lock Status column.
Delete an account
- Log on to the PolarDB console.
- In the upper-left corner of the console, select the region in which the cluster that you want to manage is deployed.
- Find the cluster and click the cluster ID.
- In the left-side navigation pane, choose .
- Find the account that you want to delete and click Delete in the Actions column.
- In the message that appears, click OK.
Related API operations
API | Description |
---|---|
CreateAccount | Creates an account. |
DescribeAccounts | Queries the accounts of a specified cluster. |
ModifyAccountDescription | Modifies the description of a database account for a PolarDB cluster. |
ModifyAccountPassword | Changes the password of a database account. |
DeleteAccount | Deletes an account. |