If you did not set a password when you created an RDS Custom instance or if you have forgotten the password, you can reset the logon password for the instance. This topic describes how to reset the logon password for an RDS Custom instance.
Procedure
Method | Instance restart required | Instance logon required | Instance status |
Yes | No | Running | |
Method 2: Reset the instance logon password from within the instance | No | Yes | Running |
Method 1: Reset the instance logon password in the console
Log on to the RDS console. In the navigation pane on the left, click RDS Custom > Instances. Then, in the top navigation bar, select a region.
Click the instance ID to navigate to the instance details page.
On the Basic Information page, in the Other Information section, click Reset Password.
In the Reset Password dialog box, set a new password and select Yes to Restart immediately.
WarningRestarting the instance stops it from running and may interrupt your services. Perform this operation during off-peak hours.
Click OK.
When the instance status changes to Running, the password is reset.
(Optional) Use the new password to log on to the RDS Custom instance. For more information, see Connect to an RDS Custom instance.
Method 2: Reset the instance logon password from within the instance
If you are logged on to the instance's operating system, you can change the logon password directly without accessing the RDS Custom console. The new password takes effect immediately, and you do not need to restart the instance. The following steps use an operating system based on the default image (Alibaba Cloud Linux 2.19) as an example.
Run the following command to change the instance logon password.
sudo passwd <username>Enter the new password and press
Enter.Enter the new password again and press
Enter.If a message similar to the following is returned, the instance logon password is reset.
