Closing a database connection created by a tMysqlConnection component - 7.3

MySQL

Version
7.3
Language
English
Product
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Database components (Integration) > MySQL components
Data Quality and Preparation > Third-party systems > Database components (Integration) > MySQL components
Design and Development > Third-party systems > Database components (Integration) > MySQL components
Last publication date
2024-02-21
The tMysqlConnection is used to create a MySQL connection that will be used by other MySQL components, such as tMysqlnput or tMysqlOutput. In a Job, the tMysqlConnection does not close the connection and should be used with:
  • tMysqlCommit/tMysqlRollback components
  • a tMysqlClose component

tMysqlCommit/tMysqlRollback

You can use the option Close Connection in the tMysqlCommit/tMysqlRollback components to close the connection.

The tMysqlConnection component creates a connection, the tMysqlCommit commits the changes if the subJob works fine and closes the connection, while the tMysqlRollback rolls back the changes if the subJob fails and closes the connection.

tMysqlClose

You can use the tMysqlClose to close a MySQL connection if there is no tMysqlCommit/tMysqlRollback in the Job or if the Close Connection check box is not selected in the tMyslqCommit/tMysqlRollback.

For an example on using the tMysqlClose component, see Scenario: Reading data from databases through context-based dynamic connections.

For an example on using the tMysqlClose component, see Scenario: Reading data from databases through context-based dynamic connections on Talend Help Center (https://help.talend.com).