Updated on 2024-11-26 GMT+08:00

Data Source

Introduction

You can create data sources and sync links to synchronize data. The data source type can be MySQL, PostgreSQL, Redis, or openGauss.

Creating a Data Source

  1. Log in to the MAS console and go to the Data Sources page.
  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

    The type can be MySQL, PostgreSQL, Redis, or 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 data sources is using RDS, that is, its Mode is set to RDS.

Deleting a Data Source

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