Database Security Settings
Account Password Complexity Settings
For details about the database password strength requirements on the RDS console, see the database configuration table in Buying an RDS for MySQL Instance.
- Each password consists of at least eight characters.
- Each password contains 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, the new password strength must be at least as strong as the initial setting.
Accounts
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.
Deleting or renaming these accounts, or modifying their passwords or permissions, may cause the instance to run abnormally. Exercise caution when performing these operations.
- rdsAdmin: a management account with the highest superuser privileges. It is used to query and modify instance information, rectify faults, migrate data, and restore data.
- rdsRepl: a replication account. It is used to synchronize data from the primary instance to the standby instance or read replicas.
- rdsBackup: a backup account. It is used to back up data in the background.
- rdsMetric: a metric monitoring account. It is used by watchdog to collect database status data.
- rdsProxy: a database proxy account, used for authentication when the database is connected through a read/write splitting address. This account is automatically created only when read/write splitting is enabled.
Configuring Password Complexity
- Log in to the RDS console.
- Click
in the upper left corner and select a region. - On the Instances page, click the target DB instance to navigate to the Overview page.
- In the navigation pane on the left, choose Parameters. On the displayed page, modify the required parameters.
When modifying parameters excluding validate_password.policy, ensure that they meet the default password policy. Otherwise, changing the administrator password will fail.
- The default password policy is as follows:
- It consists of 8 to 32 characters.
- It must contain at least four of the following: uppercase letters, lowercase letters, digits, and special characters (~ ! @ # $ % ^ * - _ = + ? , ( ) & . |).
- For example, if validate_password_length is set to 40, it exceeds the allowed password length limit (8 to 32 characters). When you reset a password, an error will be reported.
validate_password.policy controls the character types required for passwords.
- If the instance uses a system parameter template, the password must consist of 8 to 32 characters and contain at least four of the following character types: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&.|).
- If the instance uses a custom parameter template, the allowed character types depend on the parameter validate_password.policy (versions 8.0 and 8.4) or validate_password_policy (versions 5.6 and 5.7).
- If the parameter is set to LOW, the password must consist of 8 to 32 characters and contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&.|).
- If the parameter is set to MEDIUM, the password must consist of 8 to 32 characters and contain at least four of the following character types: uppercase letters, lowercase letters, digits, and special characters (~!@#$%^*-_=+?,()&.|).
Table 1 Parameters for MySQL 8.0 and 8.4 Parameter
Description
Value Range
Default Value
validate_password.length
Minimum length of a password string.
0~2,147,483,647
Its value cannot be less than the value of the following expression: validate_password.number_count + validate_password.special_char_count + (2 * validate_password.mixed_case_count)
8
validate_password.mixed_case_count
Minimum number of uppercase and lowercase characters.
0~2,147,483,647
1
validate_password.number_count
Minimum number of digits.
0~2,147,483,647
1
validate_password.policy
Password strength policy level.
- LOW: Only the password length is checked.
- MEDIUM: The password length, number of characters, number of digits, and number of special characters are checked.
- STRONG: The password length, number of characters, number of digits, number of special characters, and password dictionary file are checked.
MEDIUM
validate_password.special_char_count
Minimum number of special characters.
0~2,147,483,647
1
Table 2 Parameters for MySQL 5.6 and 5.7 Parameter
Description
Value Range
Default Value
validate_password_length
Minimum length of a password string.
0~2,147,483,647
Its value cannot be less than the value of the following expression: validate_password_number_count + validate_password_special_char_count + (2 * validate_password_mixed_case_count)
8
validate_password_mixed_case_count
Minimum number of uppercase and lowercase characters.
0~2,147,483,647
1
validate_password_number_count
Minimum number of digits.
0~2,147,483,647
1
validate_password_policy
Password strength policy level.
- LOW: Only the password length is checked.
- MEDIUM: The password length, number of characters, number of digits, and number of special characters are checked.
- STRONG: The password length, number of characters, number of digits, number of special characters, and password dictionary file are checked.
MEDIUM
validate_password_special_char_count
Minimum number of special characters.
0~2,147,483,647
1
- The default password policy is as follows:
- Click Save. In the displayed dialog box, click OK. The changes will apply immediately.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot