Skip to main content Skip to complementary content

Configuring the 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.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!