All Products
Search
Document Center

ApsaraDB for MongoDB:Reset the password of an account for an instance

Last Updated:Nov 12, 2024

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

  • root

  • The account created for a Configserver node.

    Note

    You cannot create an account for a Configserver node in an instance that uses cloud disks. Therefore, you cannot reset the password of the account.

  • The account created for a shard node.

Procedure

  1. Log on to the ApsaraDB for MongoDB console.

  2. In the left-side navigation pane, click Replica Set Instances or Sharded Cluster Instances.

  3. In the upper-left corner of the page, select the resource group and region to which the desired instance belongs.

  4. Click the ID of the instance or click Manage in the Actions column.

  5. 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.

      1. In the left-side navigation pane of the instance details page, click Accounts.

      2. 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.

      Note

      If 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.

      1. In the left-side navigation pane of the instance details page, click Accounts.

      2. Click Reset Password in the Actions column corresponding to the account whose password you want to reset.

  6. 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.

  7. Click OK.