MySQL links are applicable to third-party cloud MySQL services and MySQL created in a local data center or ECS. This tutorial describes how to create a MySQL link.
Click Upload in the Operation column and select a local driver.
Alternatively, click Copy from SFTP in the Operation column and configure the SFTP Link name and Driver File Path.

Parameter |
Description |
Example Value |
|---|---|---|
Name |
Enter a unique link name. |
mysqllink |
Database Server |
IP address or domain name of the MySQL database |
192.168.1.110 |
Port |
MySQL database port |
3306 |
Database Name |
Name of the MySQL database |
sqoop |
Username |
User who has the read, write, and delete permissions on the MySQL database |
admin |
Password |
Password of the user |
- |
Use Local API |
Whether to use the local API of the database for acceleration. (The system attempts to enable the local_infile system variable of the MySQL database.) |
Yes |
Use Agent |
The agent function will be unavailable soon and does not need to be configured. |
- |
local_infile Character Set |
When using local_infile to import data to MySQL, you can configure the encoding format. |
utf8 |
Driver Version |
A driver version that adapts to MySQL |
- |
Agent |
The agent function will be unavailable soon and does not need to be configured. |
- |
Fetch Size |
Number of rows obtained by each request |
1000 |
Commit Size |
(Optional) Displayed when you click Show Advanced Attributes. Number of records submitted each time. Set this parameter based on the destination and data size of the job. If the value is too large or too small, the job execution time may be affected. |
1000 |
Link Attributes |
Custom attributes of the link |
useCompression=true |
Reference Sign |
Delimiter used to separate referenced table names or column names This parameter is left blank by default. |
' |
Batch Size |
Number of rows written each time. It should be less than Commit Size. When the number of rows written reaches the value of Commit Size, the rows will be committed to the database. |
100 |
If an error occurs during the saving, the security settings of the MySQL database are incorrect. In this case, you need to enable the EIP of the CDM cluster to access the MySQL database.