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 |
Whether to extract data from the data source through an agent |
Yes |
Driver Version |
A driver version that adapts to MySQL |
- |
Agent |
Click Select and select the agent created in Connecting to an Agent. |
- |
Fetch Size |
Number of rows obtained by each request |
1000 |
Commit Size |
Obtaining data from the source through the agent |
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. |
' |
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.