Help Center> Document Database Service> User Guide> Database Management> Creating a Database Account through DAS

Creating a Database Account through DAS

Scenarios

This section describes how to create a database account and change the account password on the DAS console after the DDS DB instances are created.

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

You have logged in to a DDS 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

  1. You have logged in to a DDS DB instance through DAS.
  2. On the DAS console, choose More > User Management and click Add User.

    Figure 1 User Management

  3. On the displayed page, specify required parameters. The following uses adding user user1 and the root role for the admin database as an example:

    1. Enter the database username and password.
      Figure 2 Add User
    2. Click Add Roles, select root, and click Add.
      Figure 3 Add Roles
    3. Click Save.

  4. If you need to change the password or role, click Alter.

    Figure 4 Add User