Reset the database password for a Cloud Web Hosting instance

更新时间:
复制 MD 格式

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.

Warning

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

Note

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

  1. Log on to the Cloud Web Hosting management page.
  2. 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.

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

    1. On the Site Information page, in the Database Information section, click [Reset Password] next to Database Password.

      重置密码

    2. In the Database Password Reset dialog box, click Confirm.

      Important

      Carefully read the Important notice in the following figure and confirm that you want to proceed. If you are unsure, consult your website developer.

      确认重置密码

    3. In the Database Password Reset dialog box, enter and confirm the new password, and then click Confirm.

      Warning

      If 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

    1. In the navigation pane on the left, click Database Information.

    2. On the Database Information page, click Reset Password in the Actions column.

      重置密码2

    3. In the Database Password Reset dialog box, click Confirm.

      Important

      Carefully read the Important notice in the following figure and confirm that you want to proceed. If you are unsure, consult your website developer.

      确认重置密码

    4. In the Database Password Reset dialog box, enter and confirm the new password, and then click Confirm.

      Warning

      If 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