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

You can create privileged and standard database accounts in PolarDB. You can manage all accounts in the console.

Create a database account

For more information, see Create a database account.

Change the password

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the page, select a region.
  3. On the Clusters page, find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Accounts.
  5. Find the account for which you want to change the password and click Change Password in the Actions column.Change the password
  6. 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.

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the page, select a region.
  3. On the Clusters page, find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Accounts.
  5. Find the account and click Lock in the Actions column.
  6. In the message that appears, click OK.

Unlock an account.

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the page, select a region.
  3. On the Clusters page, find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Accounts.
  5. Find the account that you want to unlock and click Unlock in the Actions column.
  6. In the message that appears, click OK.

Delete an account

  1. Log on to the PolarDB console.
  2. In the upper-left corner of the page, select a region.
  3. On the Clusters page, find the cluster and click the cluster ID.
  4. In the left-side navigation pane, choose Settings and Management > Accounts.
  5. Find the account that you want to delete and click Delete in the Actions column.
  6. 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.