After you enable three-role mode, you can view account information and reset passwords for the three system accounts in the PolarDB-X console.
Role overview
Three-role mode creates three dedicated system accounts. Each account has a fixed set of privileges that cannot be modified.
| Account | Full name | Responsibility |
|---|---|---|
| DBA | Database administrator | Manages database objects and operations |
| DSA | Security administrator | Manages security policies and configurations |
| DAA | Data audit administrator | Audits data access and operations |
Limits
The following restrictions apply to the DBA, DSA, and DAA accounts:
-
GRANT ROLEandREVOKE ROLEare not supported. -
GRANT PRIVILEGESandREVOKE PRIVILEGESare not supported. -
SET DEFAULT ROLEis not supported. -
To change the password of a system account, you must be logged in to the database using that account. For example, to change the DBA account password, log in to the database as the DBA account first.
Prerequisites
Before you begin, make sure that:
-
Three-role mode is enabled on the instance
-
You are logged in to the PolarDB for Xscale console
View account information
Two navigation paths provide access to account information. Method 1 shows account names and descriptions. Method 2 shows full account details including account type, accessible databases, and granted permissions.
Method 1: Safety management page
-
In the top navigation bar, select the region where the instance is located.
-
On the Instances page, click the PolarDB-X 2.0 tab.
-
Find the instance and click its ID.
-
In the left-side navigation pane, choose ConfigurationManagement > Safety management.
-
Click the Account powers tab to view the names and descriptions of the DBA, DSA, and DAA accounts.
Method 2: Account Management page
-
In the top navigation bar, select the region where the instance is located.
-
On the Instances page, click the PolarDB-X 2.0 tab.
-
Find the instance and click its ID.
-
In the left-side navigation pane, choose ConfigurationManagement > Account Management.
-
On the Account Management page, view the DBA, DSA, and DAA accounts. For each account, the page shows the account type, accessible databases, and granted permissions. Standard accounts are also listed on this page.
Reset a password
You must be logged in to the database using the account whose password you want to reset before following these steps. For example, to reset the DBA password, log in to the database as the DBA account first.
-
In the top navigation bar, select the region where the instance is located.
-
On the Instances page, click the PolarDB-X 2.0 tab.
-
Find the instance and click its ID.
-
In the left-side navigation pane, choose ConfigurationManagement > Account Management.
-
Click the Account powers tab.
-
Find the account and click Change password in the Operation column.
-
In the dialog box, enter and confirm the new password.
NoteThe password must meet all of the following requirements:
-
8 to 20 characters in length
-
At least three of the following character types: uppercase letters, lowercase letters, digits, and special characters
-
Supported special characters:
@#$%^&+=
-
-
Click OK.