RDS(MySQL) Connection Parameters
RDS(MySQL) connections can connect to databases such as RDS for MySQL and on-premises MySQL databases.
Parameter |
Mandatory |
Description |
---|---|---|
Data Connection Type |
Yes |
RDS(MySQL) is selected by default and cannot be changed. |
Name |
Yes |
Name of the data connection to create. Data connection names can contain a maximum of 100 characters. They can contain only letters, digits, underscores (_), and hyphens (-). |
Description |
No |
A description which can help identify the data connection more easily. It can contain a maximum of 100 characters. |
Tag |
No |
Attribute of the data connection to create. Tags make management easier.
NOTE:
The tag name can contain only letters, digits, and underscores (_) and cannot start with an underscore (_) or contain more than 100 characters. |
Applicable Modules |
Yes |
Select the modules for which this connection is available.
NOTE:
|
Basic and Network Connectivity Configuration |
||
IP Address or Domain Name |
Yes |
Address for accessing the relational database through an internal network. Enter an IP address or domain name.
|
Port |
Yes |
Port for accessing the relational database. Ensure that you have enabled this port in the security group rule so that the DataArts Studio instance can connect to this database through this port.
|
KMS Key |
Yes |
KMS key used to encrypt and decrypt data source authentication information. Select a default or custom key.
NOTE:
|
Agent |
Yes |
RDS is not a fully managed service and cannot be directly connected to DataArts Studio. A CDM cluster can provide an agent for DataArts Studio to communicate with non-fully-managed services. Therefore, you need to select a CDM cluster when creating an RDS data connection. If no CDM cluster is available, create one first by referring to Creating a CDM Cluster. As a network proxy, the CDM cluster must be able to communicate with RDS. To ensure network connectivity, the CDM cluster must be in the same region and AZ and use the same VPC and subnet as RDS. The security group rule must also allow the CDM cluster to communicate with RDS.
NOTE:
If a CDM cluster functions as the agent for a data connection in Management Center, the cluster supports a maximum of 200 concurrent active threads. If multiple data connections share an agent, a maximum of 200 SQL, Shell, and Python scripts submitted through the connections can run concurrently. Excess tasks will be queued. You are advised to plan multiple agents based on the workload. |
SSL Encryption |
No |
Whether to enable SSL encrypted transmission. |
Data Source Driver Configuration |
||
Driver Name |
Yes |
com.mysql.jdbc.Driver: Select this driver name for RDS for MySQL or MySQL. |
Driver File Path |
Yes |
It specifies the OBS path where the driver file is located. You need to download a .jar driver file from the corresponding official website and upload it to OBS. MySQL driver: Download it from https://downloads.mysql.com/archives/c-j/. The 5.1.48 version is recommended.
NOTE:
|
Data Source Authentication and Other Function Configuration |
||
Username |
Yes |
The username of the database. The username is required for creating a cluster. |
Password |
Yes |
The password for accessing the database. The password is required for creating a cluster. |
Data Integration Configuration |
||
Database Name |
Yes |
Name of the database to connect |
Use Local API |
No |
(Optional) Whether to use the local API of the database for acceleration. When you create a MySQL link, CDM automatically enables the local_infile system variable of the MySQL database to enable the LOAD DATA function, which accelerates data import to the MySQL database. If this parameter is enabled, the date data that does not meet the format requirements will be stored as 0000-00-00. For details, visit the official MySQL website. If CDM fails to enable this function, contact the database administrator to enable the local_infile system variable. Alternatively, set Use Local API to No to disable API acceleration. If data is imported to RDS for MySQL, the LOAD DATA function is disabled by default. In such a case, you need to modify the parameter group of the MySQL instance and set local_infile to ON to enable the LOAD DATA function.
NOTE:
If local_infile on RDS is uneditable, it is the default parameter group. You need to create a parameter group, modify its values, and apply it to the RDS for MySQL instance. For details, see the Relational Database Service User Guide. |
local_infile Character Set |
No |
This parameter is displayed when Use Local API is enabled. When using local_infile to import data to MySQL, you can configure the encoding format. The default value is utf8. |
Fetch Size |
No |
Set the number of rows obtained by each request. Set this parameter based on the data source and the job's data size. This parameter is optional. If the value is either too large or too small, the job may run for a long time. The default value is 1,000. |
Commit Size |
No |
Number of records submitted each time. Set this parameter based on the data destination and the job's data size. If the value is either too large or too small, the job may run for a long time. The default value is 10,000. |
Batch Size |
No |
Number of rows written each time. This parameter is optional. 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. The default value is 100. |
Link Attributes |
No |
(Optional) Click Add to add the JDBC connector attributes of multiple specified data sources. For details, see the JDBC connector document of the corresponding database.
Examples for MySQL:
|
Reference Sign |
No |
(Optional) Delimiter between the names of the referenced tables or columns. For details, see the product documentation of the corresponding database. The default value is ". |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot