Manage database accounts

Updated at:

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

  1. Log on to the PolarDB console.
  2. In the upper-left corner, select the region where the cluster is deployed.

  3. Find the target cluster and click its ID.

  4. In the left-side navigation pane, choose Settings and Management > Accounts.

  5. Find the target account and click Change Password in the Actions column.

  6. 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.

  1. Log on to the PolarDB console.
  2. In the upper-left corner, select the region where the cluster is deployed.

  3. Find the target cluster and click its ID.

  4. In the left-side navigation pane, choose Settings and Management > Accounts.

  5. Find the target account and toggle the switch in the Lock Status column to lock or unlock the account.

Delete an account

  1. Log on to the PolarDB console.
  2. In the upper-left corner, select the region where the cluster is deployed.

  3. Find the target cluster and click its ID.

  4. In the left-side navigation pane, choose Settings and Management > Accounts.

  5. Find the target account and click Delete in the Actions column.

    Important

    After you delete an account, you cannot log on to a database client through the account. Proceed with caution.

  6. In the dialog box that appears, click OK.

Related API operations

API operation

Description

CreateAccount

Creates an account.

DescribeAccounts

Queries accounts.

ModifyAccountDescription

Modifies the description of an account.

ModifyAccountPassword

Changes the password of an account.

DeleteAccount

Deletes an account.