If you forget your account password, want to change your password, or did not set a password when you created an instance, you can use the password reset feature provided by ApsaraDB for MongoDB.
Limits
Instance architecture | Account whose password can be reset |
Standalone instances | root |
Replica set instances | root |
Sharded cluster instances |
|
Procedure
Log on to the ApsaraDB for MongoDB console.
In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.
In the upper-left corner of the page, select the resource group and region to which the desired instance belongs.
Click the ID of the instance or click Manage in the Actions column.
Perform one of the following operations based on the instance architecture and the type of your account:
Reset the password of the root account for a standalone instance, replica set instance, or sharded cluster instance.
In the left-side navigation pane of the instance details page, click Accounts.
Click Reset Password in the Actions column corresponding to the root account.
Reset the password of a Configserver or shard node in a sharded cluster instance.
NoteIf you have not applied for an endpoint for a Configserver or shard node, you must first apply for an endpoint for the Configserver or shard node. For more information, see Apply for an endpoint for a shard or Configserver node in a sharded cluster instance.
In the left-side navigation pane of the instance details page, click Accounts.
Click Reset Password in the Actions column corresponding to the account whose password you want to reset.
In the Reset Password panel, configure the parameters described in the following table.
Parameter
Description
Account
The account whose password you want to reset. The value of this parameter cannot be modified.
New Password
The new password. Specify the new password of the account based on the following rules:
The password must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and specific special characters. The following special characters are supported:
!@#$%^&*()_+=
The password must be 8 to 32 characters in length.
Confirm New Password
Re-enter the new password.
Click OK.