If you forget the password of your Tair (Redis OSS-compatible) instance, want to update the password on a regular basis 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 operation for changing the password of an instance.
Precautions
If your instance is compatible with Redis 4.0 or later and does not support the Account Management feature, update the minor version of the instance and try again.
Procedure
Log on to the 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.
In the left-side navigation pane, click Account Management.
In the upper-right corner of the page that appears, click Change Password.
NoteIf you forget the old password, you can find the desired account, click Reset Password in the Actions column, and then reset the password as prompted. You do not need to enter the old password.
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 special characters. The supported special characters include
! @ # $ % ^ & * ( ) _ + - =
Click OK.
After you change the password, the password immediately takes effect without requiring you to restart the instance and does not affect the connections that have passed authentication. However, you must use the new password for new connections.
Related API operations
API operation | Description |
Resets the password of an account for an instance. |
FAQ
Can I leave the password empty when I connect to a Tair (Redis OSS-compatible) instance?
If password-free access is enabled for an instance deployed in a VPC, clients that belong to the same VPC as the instance can connect to the instance without using passwords. In addition, to connect to an instance, you must use an account and a password for authentication. You must configure an account and a password for the instance.
Why is the "WRONGPASS invalid username-password pair" error reported in Data Management (DMS) after I change the password?
After you change the password, you must right-click the desired instance in the database list, select Edit, and then enter the new password.
What to do next
After you reset the password, you must replace the password in the client with the new password.