Adding a DWS database

If you have subscribed to HUAWEI CLOUD DWS, and created databases in DWS, you can follow the instructions described in this section to add the databases created in DWS to DSC.

Prerequisites

  • You have obtained credentials for logging in to the management console.
  • DSC has been allowed to access the database assets. For details, see Allowing or Disallowing Access to Cloud Assets.
  • You have subscribed to DWS, and assets are available in DWS. There are available IP addresses in the corresponding subnet.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. In the navigation pane on the left, click and choose Security & Compliance > Data Security Center.
  4. In the navigation pane, choose Assets and select the Database tab and then the Unauthorized tab.

    Figure 1 Unauthorized database assets

  5. In the upper left corner of the database asset list, click Add DWS Database.
  6. In the displayed dialog box, set database parameters based on Table 1.

    Figure 2 Adding a DWS database
    Table 1 Parameter description

    Parameter

    Description

    Example Value

    Asset

    Customized parameter

    dsc_test

    Region

    Region where the account is used for login

    N/A

    DWS Instance

    Select a database instance that has been created in DWS using the current account from the drop-down list.

    N/A

    Version

    (Default) Version of the selected instance, which cannot be modified

    5.7

    Database Server Address

    IP address of the database server

    192.168.0.233

    Port

    (Default) Port number of the database server, which cannot be modified

    3306

    Database

    Name of the database created in DWS. You can choose to enter a name or select one from the drop-down list.

    N/A

    Username

    Username for accessing the database you have entered, which must be the same as that set when the database is created in DWS

    N/A

    Password

    Password for accessing the database you have entered, which must be the same as that set when the database is created in DWS

    N/A

  7. Click OK. The authorized databases are displayed on the Authorized tab page.

    Figure 3 Connectivity test
    DSC will check the connectivity of the added database, and the connectivity status of the added database is Checking.

Related Operations