This topic describes how to create a database account and explains the differences between privileged and standard accounts.
Background information
PolarDB supports two types of database accounts: privileged accounts and standard accounts. You can manage all accounts in the console.
For security reasons, PolarDB does not provide a root account.
Account type | Description |
Privileged Account |
|
Standard Account |
|
Create 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 .
Click Create Account.
Set the following parameters.
Parameter
Description
Account Name
The account name must meet the following requirements:
Starts with a lowercase letter and ends with a lowercase letter or a digit.
Contains lowercase letters, digits, and underscores (_).
Must be 2 to 16 characters long.
Cannot be a reserved username, such as root or admin.
Account Type
To create a privileged account, select Privileged Account.
To create a standard account, select Standard Account.
Password
The password must meet the following requirements:
Contains at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters.
Must be 8 to 32 characters long.
The supported special characters are:
!@#$%^&*()_+-=
Confirm Password
Enter the password again.
Description
Enter a description for the account. The description must meet the following requirements:
Cannot start with http:// or https://.
Must start with a letter or a Chinese character.
Can contain letters, Chinese characters, digits, underscores (_), and hyphens (-).
Must be 2 to 256 characters long.
Click OK.
What to do next
Related APIs
API | Description |
Creates a database account. | |
Queries database accounts. | |
Modifies the description of a database account. | |
Modifies the password of a database account. |