Manage database accounts
This topic describes how to manage database accounts, including modifying account passwords, locking accounts, unlocking accounts, and deleting accounts.
Background information
PolarDB supports two types of database accounts: privileged accounts and standard accounts. You can manage all accounts and databases in the console.
Precautions
For security reasons, PolarDB does not provide a root account.
Create a database account
For more information, see Create a database account.
Change the account password
- Log on to the PolarDB console.
-
In the upper-left corner, select the region where the cluster is deployed.
-
Find the target cluster and click its ID.
-
In the left-side navigation pane, choose .
-
Find the target account and click Change Password in the Actions column.
-
In the dialog box that appears, enter and confirm the new password, and then click OK.
Lock or unlock an account
You can lock an account to prevent database logons through the account.
- Log on to the PolarDB console.
-
In the upper-left corner, select the region where the cluster is deployed.
-
Find the target cluster and click its ID.
-
In the left-side navigation pane, choose .
-
Find the target account and toggle the switch in the Lock Status column to lock or unlock the account.
Delete an account
- Log on to the PolarDB console.
-
In the upper-left corner, select the region where the cluster is deployed.
-
Find the target cluster and click its ID.
-
In the left-side navigation pane, choose .
-
Find the target account and click Delete in the Actions column.
ImportantAfter you delete an account, you cannot log on to a database client through the account. Proceed with caution.
-
In the dialog box that appears, click OK.
Related API operations
|
API operation |
Description |
|
Creates an account. |
|
|
Queries accounts. |
|
|
Modifies the description of an account. |
|
|
Changes the password of an account. |
|
|
Deletes an account. |