To improve website security, reset the database password for your Cloud Web Hosting instance periodically. You can also reset the password if you forget it. This topic describes how to reset a database password in the Cloud Web Hosting console. This topic uses a Linux-based exclusive Web Hosting instance (Deluxe Enhanced Edition) as an example.
Precautions
After you reset the database password, update the database connection string in your website program. If you do not have coding experience or access to the source code, consult your website developer.
After you reset the database password for your Cloud Web Hosting instance, your website will become inaccessible if you do not also update the database connection string in your website program. Proceed with caution. For more information about the paths of database configuration files, see Paths of database configuration files for common third-party open source programs.
Procedure
Before you reset the database password, make sure you have your Alibaba Cloud account credentials. If you forget your account credentials, see What do I do if I forget my account or logon password?.
- Log on to the Cloud Web Hosting management page.
On the Host List page, find the Cloud Web Hosting instance for which you want to reset the database password and click Manage in the Actions column.
You can reset the database password on the host logon page.
You can reset the database password for your Cloud Web Hosting instance from one of the following two pages:
Site information page
On the Site Information page, in the Database Information section, click [Reset Password] next to Database Password.

In the Database Password Reset dialog box, click Confirm.
ImportantCarefully read the Important notice in the following figure and confirm that you want to proceed. If you are unsure, consult your website developer.

In the Database Password Reset dialog box, enter and confirm the new password, and then click Confirm.
WarningIf the PHP version of your Cloud Web Hosting instance is 5.3 or later, set the database encryption mode to 41-bit. Otherwise, the database connection will fail. For more information about how to view and change the PHP version, see Change the PHP version.
When you reset the database password, follow these naming conventions:
The password must contain characters from at least three of the following types: uppercase letters, lowercase letters, digits, and special characters (
()`~!@#$%^&-+=|{}[]:;<>,.?/).The length must be between 8 and 20 characters.
After the database password is changed, a success message appears.
Database information page
In the navigation pane on the left, click Database Information.
On the Database Information page, click Reset Password in the Actions column.

In the Database Password Reset dialog box, click Confirm.
ImportantCarefully read the Important notice in the following figure and confirm that you want to proceed. If you are unsure, consult your website developer.

In the Database Password Reset dialog box, enter and confirm the new password, and then click Confirm.
WarningIf the PHP version of your Cloud Web Hosting instance is 5.3 or later, set the database encryption mode to 41-bit. Otherwise, the database connection will fail. For more information about how to view and change the PHP version, see Change the PHP version.
When you reset the database password, follow these naming conventions:
The password must contain characters from at least three of the following types: uppercase letters, lowercase letters, digits, and special characters (
()`~!@#$%^&-+=|{}[]:;<>,.?/).The length must be between 8 and 20 characters.
After the database password is changed, a success message appears.
References
If you forget your host management console password or FTP logon password, or if you want to reset them for security reasons, see Reset the host management console password and the FTP password.
If you reset the database password but do not update it in the database connection configuration file of your website program, your website will become inaccessible. For more information, see Website is inaccessible after a database password reset.
After you build a Discuz! forum on a Cloud Web Hosting instance, if you change the database password in the host management console but do not update it in the website's configuration file, the forum will become inaccessible. For more information, see Cannot access a Discuz! forum after changing the database password.