Configuring the components - Cloud - 8.0

MySQL

Version
Cloud
8.0
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 Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for ESB
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

Procedure

  1. Double-click tMysqlInput to open its Basic Settings view in the Component tab.
  2. From the Property Type list, select Repository if you have already stored the connection to database in the Metadata node of the Repository tree view. The property fields that follow are automatically filled in.
    For more information about how to store a database connection, see Talend Studio User Guide.
    If you have not defined the database connection locally in the Repository, fill in the details manually after selecting Built-in from the Property Type list.
  3. Set the Schema as Built-in and click Edit schema to define the desired schema.
    The schema editor opens:
  4. Click the [+] button to add the rows that you will use to define the schema, four columns in this example id, first_name, city and salary.
    Under Column, click in the fields to enter the corresponding column names.
    Click the field under Type to define the type of data.
    Click OK to close the schema editor.
  5. Next to the Table Name field, click the [...] button to select the database table of interest.
    A dialog box displays a tree diagram of all the tables in the selected database:
  6. Click the table of interest and then click OK to close the dialog box.
  7. Set the Query Type as Built-In.
  8. In the Query box, enter the query required to retrieve the desired columns from the table.
  9. Double-click tFileOutputDelimited to set its Basic settings in the Component tab.
  10. Next to the File Name field, click the [...] button to browse your directory to where you want to save the output file, then enter a name for the file.
    Select the Include Header check box to retrieve the column names as well as the data.
  11. Save the Job.