Add a MySQL-compatible data source

更新时间:
复制 MD 格式

You can add a MySQL-compatible data source in DataV to integrate older MySQL database versions as data sources for widgets.

Prerequisites

The MySQL-compatible data source that you want to add is prepared.

Important

Add the IP addresses of the corresponding region to your data source whitelist to ensure that DataV can access your database. For more information, see Configure a database whitelist.

Limits

This feature is supported only in DataV Enterprise Edition or higher.

Procedure

  1. Access the DataV console.

  2. On the Workbench page, click Data Preparation > Data Source in the navigation pane on the left. On the Data Source page, click New Data Source.

  3. From the Type dropdown, select MySQL-compatible Database.

  4. Enter the database connection details.

    image

    Parameter

    Description

    Name

    A custom name for the data source.

    Domain Name

    The connection address of the database.

    Important

    This address must be a domain name or IP address that the DataV server can access through the public network or the internal network in some Alibaba Cloud regions.

    Port

    The port number of the database.

    Username

    The username used to log on to the database.

    Password

    The password used to log on to the database.

    Database

    The name of the currently selected database.

    insecureAuth

    Enables compatibility with older MySQL versions (below 5.2). Full compatibility is not guaranteed.

    Compatible With Azure Database For Mysql

    Enables compatibility with Azure Database for MySQL.

    After you enter the database information, the system automatically tests the connection.

  5. After the connection test succeeds, click OK to add the data source.

What to do next

To use the data source in your widgets, see Configure a widget data source.

FAQ

For more information, see FAQ about data source configuration and usage.