All Products
Search
Document Center

PolarDB:Create a database account

Last Updated:Mar 28, 2026

PolarDB for PostgreSQL provides two managed account types — privileged and standard — for database administration. This topic explains the differences between account types and walks you through creating an account in the console.

Account types

Account typeHow it is managedPermissions
Privileged accountConsole or API onlyFull permissions on all databases in the cluster; supports fine-grained control over user permissions (for example, you can grant different users the permissions to query different tables); can manage all standard accounts; can disconnect any account from the cluster
Standard accountConsole or SQL statementsPermissions on specific databases only, manually granted per account; cannot create, manage, or disconnect other accounts

Multiple accounts of each type can exist in the same cluster. The maximum number of standard accounts that you can create depends on the database engine. Use a privileged account for cluster-wide administration and a standard account for application-level database access.

Prerequisites

Before you begin, ensure that you have:

Create an account

  1. Log on to the PolarDB console.

  2. In the upper-left corner, select the region where your cluster is located.

  3. On the Clusters page, find the cluster and click its cluster ID.

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

  5. Click Create Account.

  6. In the Create Account panel, set the following parameters.

    ParameterDescription
    Account NameEnter an account name. The name must: start with a lowercase letter and end with a letter or digit; contain only lowercase letters, digits, and underscores (_); be 2–16 characters long; not be a reserved name such as root or admin.
    Account TypeSelect Privileged Account or Standard Account.
    PasswordEnter a password. The password must: be 8–32 characters long; include at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters (! @ # $ % ^ & * ( ) _ + - =).
    Confirm PasswordRe-enter the password.
    DescriptionEnter a description to identify the account. The description must be 2–256 characters long and cannot start with http:// or https://.
  7. Click Create.

API reference

APIDescription
Creates an account
Queries the accounts of a specified cluster
Modifies the description of a database account
Changes the password of a database account
Deletes an account

What's next

Connect to your cluster using an endpoint: