Updated on 2025-11-11 GMT+08:00

Configuring a Password Expiration Policy

Using the same password too long makes it easier for hackers to crack or guess your password. Requiring password changes after a certain amount of time can improve security. This section describes how to configure a password expiration policy.

Precautions

  • Once your password expires, you cannot log in to the database.
  • After the password expiration policy is configured, you need to periodically check whether your password is about to expire.

Modifying the Database Parameter

  1. Log in to the management console.
  2. Click in the upper left corner of the page and choose Databases > Relational Database Service.
  3. On the Instances page, click the instance name to go to the Overview page.
  4. In the navigation pane, choose Parameters.
  5. On the displayed page, change the value of default_password_lifetime.

    The value of this parameter indicates how many days until a password expires. The default value is 0, indicating that the created user password will never expire.

  6. Click Save. In the displayed dialog box, click Yes.