All Products
Search
Document Center

ApsaraDB for Redis:Change or reset the password

Last Updated:Jan 17, 2024

If you forget the password of your ApsaraDB for Redis instance, want to update the password regularly to enhance data security, or did not set a password when you created the instance, you can set or change the password by using the console or API. This topic describes the precautions, procedure, and API operations for changing the password of an ApsaraDB for Redis instance.

Precautions

If your instance runs Redis 4.0 or later and does not support the Account Management feature, you must update the minor version of the instance. For more information, see Update the minor version of an instance.

Procedure

  1. Log on to the ApsaraDB for Redis console and go to the Instances page. In the top navigation bar, select the region in which the instance that you want to manage resides. Then, find the instance and click the instance ID.

  2. In the left-side navigation pane, click Account Management.
  3. On the page that appears, click Change Password in the upper-right corner.
    Note If you forget the current password, you can click Reset Password in the Actions column to reset your password.
  4. In the panel that appears, select the account for which you want to change the password and enter the current password and a new password.
    • The password must be 8 to 32 characters in length.
    • The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and specific special characters. These special characters include ! @ # $ % ^ & * ( ) _ + - =
  5. Click OK.

Related API operations

API operation

Description

ResetAccountPassword

Resets the password of an account for an ApsaraDB for Redis instance.

What to do next

After you reset the password, you must replace the password in the Redis client with the new password.