PolarDB-X supports two account types — privileged accounts and standard accounts — for controlling database access. This topic describes how to create either type from the console.
Account types
PolarDB-X supports the following account types:
Privileged account
Standard account
Prerequisites
Before you begin, make sure you have:
A PolarDB-X 2.0 instance
Access to the PolarDB for Xscale console
Create an account
Log on to the PolarDB for Xscale console.
In the top navigation bar, select the region where your instance is located.
On the Instances page, click the PolarDB-X 2.0 tab.
Find the target instance and click its ID.
In the left-side navigation pane, choose ConfigurationManagement > Account Management.
Click Create an account and configure the following parameters in the panel that appears.
Parameter Description Account name The username for the account. Requirements: up to 16 characters; lowercase letters, digits, and underscores ( _) only; must start with a lowercase letter and end with a lowercase letter or digit; must be unique.Account types Select Privileged account or Standard account. Authorization database Available for standard accounts only; optional at creation time — you can grant permissions after the account is created. To authorize databases: select one or more databases and click the
icon to move them from Unauthorized database to Authorized database, then select the permissions to grant. Supported permissions: Read and Write, Read Only, DML Only, and DDL Only. To apply the same permission to all selected databases at once, click the permission name (such as All Read and Write) next to Authorized database.Password The account password. Requirements: 8–20 characters; must include at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters ( @ # $ % ^ & + =).Confirm password Re-enter the password to confirm. Descr (Optional) A description to help identify the account. Up to 256 characters. Click OK.