This topic describes how to reset the password of an account on your ApsaraDB RDS for SQL Server instance. If the password is lost, you can reset the password in the ApsaraDB for RDS console.

Limits of ApsaraDB RDS for SQL Server

If Enforce password expiration and Enforce password policy are configured for your RDS instance, you cannot change the password in the ApsaraDB RDS console. In this case, you can execute the following SQL statements to change the password after you connect to the RDS instance:1
USE Master
GO
ALTER LOGIN UserName WITH PASSWORD = 'password'
GO
ALTER LOGIN UserName WITH
      CHECK_POLICY = OFF,
      CHECK_EXPIRATION = OFF;

Procedure

Note For data security purposes, we recommend that you change passwords on a regular basis.
  1. Access RDS Instances, select a region at the top, and then click the ID of the target RDS instance.
  2. In the left-side navigation pane, click Accounts.
  3. On the tab that appears, find the account for which you want to reset the password and click Reset Password in the Actions column.
    Reset Password
  4. In the dialog box that appears, configure the New Password and Confirm New Password parameters and click OK.
    The password must meet the following requirements:
    • The password is 8 to 32 characters in length.
    • The password contains at least three types of the following characters: uppercase letters, lowercase letters, digits, and special characters.
    • The password can contain the following special characters: ! @ # $ % ^ & * ( ) _ + - =

Related operations

OperationDescription
ResetAccountPasswordResets the password of an account on an instance.