Creating a Database Account through DAS
Scenarios
When creating a database account for a specified DB instance, you are advised to enable the SSL connection to improve data security.
Constraints
If the existing DDS DB instances are of version 3.2, you cannot create database accounts for them. You can only change the password of the administrator account rwuser.
Prerequisites
- For details on how to connect a cluster instance through DAS, see Connecting to a DB Instance Through DAS.
- For details on how to connect a replica set instance through DAS, see Connecting to a DB Instance Through DAS.
- For details on how to connect a single-node instance through DAS, see Connecting to a DB Instance Through DAS.
Account Description
To manage DDS DB instances, users root (or admin), monitor, and backup are automatically created when you create a DDS DB instance. Attempting to delete, rename, change the passwords, or change privileges for these accounts will result in errors.
You can change the password of the database administrator rwuser and any accounts you create.
Setting Password Strength for Database Accounts
- The administrator password must meet the following password policy:
- Contains 8 to 32 characters.
- Must be a combination of uppercase letters, lowercase letters, digits, and the following special characters: ~!@#%^*-_=+?
- The database user created on the client must meet the following password policy:
- Contains 8 to 32 characters.
- A combination of uppercase letters, lowercase letters, digits, and the following special characters: ~@#%-_!*+=^?
When you create a DB instance, DDS automatically checks your password strength. You can change the password as user rwuser. For security reasons, you are advised to set up a strong password.
Creating an Account
- You have logged in to a DDS DB instance through DAS.
- On the DAS console, choose More > User Management and click Add User.
Figure 1 User Management
- On the displayed page, specify required parameters. The following uses adding user user1 and the root role for the admin database as an example:
- Enter the database username and password.
Figure 2 Add User
- Click Add Roles, select root, and click Add.
Figure 3 Add Roles
- Click Save.
- Enter the database username and password.
- If you need to change the password or role, click Alter.
Figure 4 Add User
Last Article: Database Management
Next Article: Creating a Database Account Using Commands
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.