Updated on 2024-04-11 GMT+08:00

Creating a Database Account

Scenarios

When you create a DB instance, account root is created at the same time by default. You can create other database accounts as needed.

Constraints

  • Database accounts cannot be created for DB instances that are being restored.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  4. On the Instances page, click the instance name.
  5. On the Accounts page, click Create Account.
  6. In the displayed dialog box, enter the username, password, and remarks, and click OK.

    Figure 1 Creating a database account
    • The username can contain 1 to 128 characters. It can include letters, digits, hyphens (-), and underscores (_), and it must be different from system accounts. System accounts include rdsadmin, rdsuser, rdsbackup, and rdsmirror.
    • The password must consist of 8 to 32 characters and contain at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters (~ ! @ # $ % ^ * - _ = + ? ,).
    • The password cannot contain the username or the username spelled backwards.
    • You are advised to enter a strong password to improve security and prevent security risks such as brute force cracking.
    • The remarks can contain 0 to 512 characters.

  7. After the account is created, manage it on the Accounts page.