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

Database Account Security

Setting the Account Password Complexity

For information about the database password strength requirements on the RDS console, see the database configuration table in Buying a DB Instance.

RDS has a password security policy for user-created database accounts. Passwords must:
  • Consist of at least eight characters.
  • Contain at least one uppercase letter, one lowercase letter, one digit, and one special character.

When you are creating a DB instance, the password strength is checked. You can modify the password strength as user root. For security reasons, you are advised to use a password that is at least as strong as the default password.

Account Description

To provide O&M services, the system automatically creates system accounts when you create RDS for MySQL DB instances. These system accounts are unavailable to you.

Attempting to delete, rename, and change passwords or permissions for these accounts will result in an error. Exercise caution when performing these operations.

  • rdsAdmin: the management account, which has the superuser permissions and is used to query and modify DB instance information, rectify faults, migrate data, and restore data.
  • rdsRepl: the replication account, which is used to synchronize data from primary DB instances to standby DB instances or read replicas.
  • rdsBackup: the backup account, which is used for backend backup.
  • rdsMetric: the metric monitoring account, which is used by watchdog to collect database status data.
  • rdsProxy: the proxy account, which is automatically created when read/write splitting is enabled and is used for authentication when a database is connected through a read/write splitting address.

Setting Password Complexity

  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 DB instance to navigate to the Basic Information page.

    Passwords must:

    • Consist of at least eight characters.
    • Contain at least one uppercase letter, one lowercase letter, one digit, and one special character.
    • Must be different from the user name.

  5. In the navigation pane on the left, choose Parameters. On the displayed page, modify the required parameters.

    The following parameters can be modified only for RDS for MySQL 5.6 and 5.7.

    • validate_password_length: Set this parameter to 8.
    • validate_password_mixed_case_count: Set this parameter to 1.
    • validate_password_number_count: Set this parameter to 1.
    • validate_password_special_char_count: Set this parameter to 1.
    • validate_password_policy: Set this parameter to MEDIUM.
    Check the value in the Effective upon Reboot column.
    • If the value is Yes and the DB instance status on the Instances page is Parameter change. Pending reboot, a reboot is required for the modifications to take effect.
      • If you have modified parameters of a primary DB instance, you need to reboot the primary DB instance for the modifications to take effect. (For primary/standby DB instances, the parameter modifications are also applied to the standby DB instance.)
      • If you have modified parameters of a read replica, you need to reboot the read replica for the modifications to take effect.
    • If the value is No, the modifications take effect immediately.
    • To save the modifications, click Save.
    • To cancel the modifications, click Cancel.
    • To preview the modifications, click Preview.

    After parameters are modified, you can click Change History to view parameter modification details.