Updated on 2023-11-03 GMT+08:00

Data Source

Creating a Data Source

  1. Log in to the MAS console and choose Data Management > Data Sources.
  2. Select a target namespace in the upper left corner.
  3. Click Create Data Source in the upper right corner.
  4. Configure the data source and click OK.

    Figure 1 Creating a data source
    Table 1 Data source parameters

    Parameter

    Description

    Deployment Mode

    The active/standby area to which the data source belongs

    Data Source Type

    Options: MySQL, PostgreSQL, Redis, and OpenGauss. If a target data source is unavailable, enable the corresponding feature by modifying the namespace. For details, see Modifying a Namespace.

    Data Source

    Keep the default name or customize one.

    Description

    Enter a description for the data source.

    Mode

    The connection mode

    Connection Address

    The address and port number for accessing the database. This is required if Mode is set to Custom.

    Database Name

    The name of the database. This is required if Mode is set to Custom.

    Credential

    The default credential set for the current multi-active area is used. This is displayed if Mode is not set to Custom.

    Project

    The default project set for the current multi-active area is used. This is displayed if Mode is not set to Custom.

    Instances

    Select an existing database instance. This is displayed if Mode is not set to Custom.

    Username

    The username for logging in to the database

    Password

    The password for logging in to the database

    Confirm Password

    Enter the password again.

    If you need to create sync links for MySQL or PostgreSQL data sources, ensure that at least one of your MySQL data sources and one of your PostgreSQL data sources is using RDS, that is, its Mode is set to RDS.

Deleting a Data Source

  1. Log in to the MAS console, choose Data Management > Data Sources, and click Delete in the row that contains a target data source.
  2. Click OK to delete the data source.