If you forget your account password, want to change your password, or have not set a password when you created an instance, you can use the password reset feature provided by ApsaraDB for MongoDB.

Limits

You can reset only the password of an account for a Configserver node in a sharded cluster instance and the password of the root account.
Note

Procedure

  1. Log on to the ApsaraDB for MongoDB console.
  2. In the upper-left corner of the page, select the resource group and the region of the target instance.
  3. In the left-side navigation pane, click Replica Set Instances, or Sharded Cluster Instances based on the instance type.
  4. Find the target instance and click its ID.
  5. In the left-side navigation pane, click Accounts.
  6. Perform one of the following operations based on your account type:
    • Reset the password of the root account.

      Click Reset Password in the Actions column corresponding to the root account.

    • Reset the password of an account for a Configserver node in a sharded cluster instance.
      1. Optional:If you have not applied for an endpoint for a Configserver node, you must first apply for an endpoint for the Configserver node. For more information, see Apply for an endpoint for a shard or Configserver node.
      2. Click Reset Password in the Actions column corresponding to the account that you create when you apply for an endpoint for the Configserver node.
  7. In the Reset Password panel, configure the following parameters.
    Parameter Description
    Account Set the value to the account for which you want to reset the password.
    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 special characters. Special characters include

      !#$%^&*()_+=

    • The password must be 8 to 32 characters in length.
    Confirm New Password Enter the new password again.
  8. Click OK.