Get and configure database information

更新时间:
复制 MD 格式

When you install a web application on a web hosting instance, you need to configure its database connection. This topic uses WordPress and DedeCMS as examples to show how to obtain and configure the required information.

Important

M-series M2 (Cloud) Web Hosting instances do not include a database. If you try to view database information for this type of instance, the fields are empty. If you need a database, we recommend purchasing one separately, such as an ApsaraDB for RDS instance, or upgrading to a web hosting instance that includes a database.

Procedure

  1. Obtain database information.
    1. Log on to the Cloud Web Hosting management page.
    2. Find the Cloud Web Hosting instance for which you want to obtain database information and click Manage in the Actions column.
    3. In the navigation pane on the left, click Database Information.
    4. On the Database Information page, obtain database information.
      Note If you forget your database password, reset it. For more information, see Reset the Cloud Web Hosting database password.
      In the navigation pane on the left, click Database Information to view the Database name , Database version , Database address , Database username , and Data space usage. You can also perform operations such as Reset Password , Change Database , and Manage .
  2. Configure the database information.

    The following sections use the database configuration interfaces for WordPress and DedeCMS as examples.

    Note

    For the complete installation steps for WordPress and DedeCMS, see Install a website on a Web Hosting instance and Install open source DedeCMS.

    • WordPress

      The following table describes the main parameters.

      Parameter

      Description

      Database Name

      Enter the database name. To obtain the name, see Step 1.

      Username

      Enter the database username. To obtain the username, see Step 1.

      Password

      Enter the database password. If you forget the password, you can reset it. For more information, see Reset the database password for a web hosting instance.

      Database Host

      Enter the database host. To obtain the host, see Step 1.

      Table Prefix

      Keep the default value wp1_. If you plan to install multiple WordPress instances in the same database, modify the prefix.

    • On the DedeCMS parameter configuration page, besides the database settings, you also need to configure the following: In the Module Selection area, select the modules to install, such as Guestbook and mobile WAP browsing. Set the Database Character Set to UTF8. In the Initial Administrator Password area, set the administrator username (the default is admin) and password. In the Website Settings area, enter the website name, administrator email address, and website URL. When you are finished, click Continue.

      The following table describes the main parameters.

      Parameter

      Description

      Database Type

      Keep the default value MySQL.

      Database Host

      Enter the database host. To obtain the host, see Step 1.

      Database User

      Enter the database username. To obtain the username, see Step 1.

      Database Password

      Enter the database password. If you forget the password, you can reset it. For more information, see Reset the database password for a web hosting instance.

      Data Table Prefix

      Keep the default value dede_. Only change this parameter if your setup requires it.

      Database Name

      Enter the database name. To obtain the name, see Step 1.