Help Center/ Document Database Service/ User Guide/ Data Security/ Resetting the Administrator Password
Updated on 2023-12-13 GMT+08:00

Resetting the Administrator Password

For security reasons, you are advised to periodically change administrator passwords.

If you do not set the administrator password for the DB instance that you are creating, you need to reset the password before connecting to the DB instance.

Precautions

  • You cannot reset the administrator password for an instance is in any of the following statuses:
    • Frozen
    • Creating
    • Restarting
    • Adding node
    • Switching SSL
    • Changing port
    • Changing instance class
    • Deleting node
    • Upgrading minor version
    • Switchover in progress
    • Changing AZ
    • Adding read replicas
  • If you enable operation protection to improve the security of your account and cloud products, two-factor authentication is required for sensitive operations. For details about how to enable operation protection, see Operation Protection in Identity and Access Management User Guide.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner and select a region and a project.
  3. Click in the upper left corner of the page and choose Databases > Document Database Service.
  4. On the Instances page, locate the target DB instance and choose More > Reset Password in the Operation column.

    Figure 1 Resetting a password

    Alternatively, on the Instances page, click the instance. In the DB Information area on the Basic Information page, click Reset Password in the Administrator field.

    Figure 2 Resetting a password

  5. Enter and confirm the new administrator password and click OK.

    • Resetting the password does not disconnect the authenticated connection. However, you will need to enter the new password when logging in to the database.
    • The password must be 8 to 32 characters in length and contain uppercase letters, lowercase letters, digits, and any of the following special characters ~!@#%^*-_=+?()$

  6. If you have enabled operation protection, click Start Verification in the displayed dialog box. On the displayed page, click Send Code, enter the verification code, and click Verify to close the page.