<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to connect tContextLoad to tMysqlConnection in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286084#M59706</link>
    <description>hi &lt;BR /&gt;Define a context variable called host in this job. In the Host field of db component, set the field with context variable like:&lt;BR /&gt;context.host</description>
    <pubDate>Mon, 05 Nov 2012 18:23:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-11-05T18:23:23Z</dc:date>
    <item>
      <title>how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286080#M59702</link>
      <description>Hi all,&lt;BR /&gt;I am trying to establish connection from tContextLoad to tMysqlConnection. Before to accomplish the process I have prepared an excel file that contain context variable for the database connection (e.g : host, port, username, database, table, password).  &lt;BR /&gt;These context will be loaded from tFileInputExcel using tContextLoad. As the context successfully loaded, I try to connect tContextLoad to tMysqlConnection. This is to ensure that I can retrive the data based on the context variable that are stated in excel file without inserting any variables in the tMysqlConnection components. How do I get an automatic default database connection from the context I've loaded without putting anything in tMysqlInput component settings back?&lt;BR /&gt;Is this possible? Is there any alternative way to accomplish above processes? &lt;BR /&gt;Your help is very much appreciated. Thank you.</description>
      <pubDate>Mon, 05 Nov 2012 02:30:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286080#M59702</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T02:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286081#M59703</link>
      <description>Hi&lt;BR /&gt;The job design is not wrong,  it should be:&lt;BR /&gt;tContextLoad&lt;BR /&gt;    |&lt;BR /&gt;onsubjobok&lt;BR /&gt;    |&lt;BR /&gt;tMysqlConnection&lt;BR /&gt;   |&lt;BR /&gt;onsubjobok&lt;BR /&gt;   |&lt;BR /&gt;tMysqlInput--main--tLogRow&lt;BR /&gt;   |&lt;BR /&gt;onsubjobok&lt;BR /&gt;   |&lt;BR /&gt;tMysqlCommit&lt;BR /&gt;tMysqlConnection: use context variable to set the db setting, create a db connection. &lt;BR /&gt;tMysqlInput: check the option 'use an existing connection', it will use the db connection created by tMysqlConnection.\&lt;BR /&gt;tMysqlCommit: commit the change and close the db connection.&lt;BR /&gt;Have a look at the user component manual and learn tContextLoad component, there is an example about  this component .</description>
      <pubDate>Mon, 05 Nov 2012 08:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286081#M59703</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T08:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286082#M59704</link>
      <description>thank you so much shong..thank you for replying my questions..</description>
      <pubDate>Mon, 05 Nov 2012 09:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286082#M59704</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T09:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286083#M59705</link>
      <description>Dear Shong.
&lt;BR /&gt;I am a little bit confuse on how to use the context variable to set the db setting in order to create a db connection. Can you show me the processes..
&lt;BR /&gt;Thank you..</description>
      <pubDate>Mon, 05 Nov 2012 09:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286083#M59705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T09:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286084#M59706</link>
      <description>hi &lt;BR /&gt;Define a context variable called host in this job. In the Host field of db component, set the field with context variable like:&lt;BR /&gt;context.host</description>
      <pubDate>Mon, 05 Nov 2012 18:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286084#M59706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-05T18:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286085#M59707</link>
      <description>Dear Shong.
&lt;BR /&gt;Thank you for replying my question. Is it possible that I set the context variable in the excel file as the picture above instead of I set the context variable in the field of db components?. If yes can you show me the steps that should be taken?
&lt;BR /&gt;Thank You Shong.</description>
      <pubDate>Tue, 06 Nov 2012 01:23:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286085#M59707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-06T01:23:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286086#M59708</link>
      <description>Hi&lt;BR /&gt;No, the db fieldds must be filled in static value or context variable. The value of context variable can be stored in excel file. Set the db fields with context variables, as my job showed, use tContextLoad to load dynamically the value from excel file at runtime.</description>
      <pubDate>Tue, 06 Nov 2012 02:24:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286086#M59708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-06T02:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286087#M59709</link>
      <description>Hi Shong, 
&lt;BR /&gt;Do you know what is the meaning for these statement : 
&lt;BR /&gt;Exception in component tMysqlInput_1 
&lt;BR /&gt;java.sql.SQLException: Cannot convert value '1' from column 1 to TIMESTAMP. 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989) 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984) 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929) 
&lt;BR /&gt; at com.mysql.jdbc.ResultSetRow.getTimestampFast(ResultSetRow.java:1339) 
&lt;BR /&gt; at com.mysql.jdbc.ByteArrayRow.getTimestampFast(ByteArrayRow.java:129) 
&lt;BR /&gt; at com.mysql.jdbc.ResultSetImpl.getTimestampInternal(ResultSetImpl.java:6754) 
&lt;BR /&gt; at com.mysql.jdbc.ResultSetImpl.getTimestamp(ResultSetImpl.java:6073) 
&lt;BR /&gt; at talend.tcontextload_0_1.tContextLoad.tMysqlInput_1Process(tContextLoad.java:1523) 
&lt;BR /&gt; at talend.tcontextload_0_1.tContextLoad.tMysqlConnection_1Process(tContextLoad.java:1170) 
&lt;BR /&gt; at talend.tcontextload_0_1.tContextLoad.tFileInputExcel_1Process(tContextLoad.java:1037) 
&lt;BR /&gt; at talend.tcontextload_0_1.tContextLoad.runJobInTOS(tContextLoad.java:1998) 
&lt;BR /&gt; at talend.tcontextload_0_1.tContextLoad.main(tContextLoad.java:1837) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Caused by: java.sql.SQLException: Bad format for Timestamp '1' in column 1. 
&lt;BR /&gt; at com.mysql.jdbc.ResultSetRow.getTimestampFast(ResultSetRow.java:1313) 
&lt;BR /&gt;Thank You..</description>
      <pubDate>Tue, 06 Nov 2012 04:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286087#M59709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-06T04:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286088#M59710</link>
      <description>Hi &lt;BR /&gt;As the error showed, bad format for timestamp "1". You define the data type of column1 as Date, but the value of this column is 1, so please check you really need Date type for this column or Integer/int type?</description>
      <pubDate>Tue, 06 Nov 2012 05:03:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286088#M59710</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-06T05:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286089#M59711</link>
      <description>thank you so much shong..</description>
      <pubDate>Tue, 06 Nov 2012 06:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286089#M59711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-06T06:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286090#M59712</link>
      <description>Dear Shong, 
&lt;BR /&gt;Thank You for assisting me for the whole process. Your help are much appreciated. Thank You again.</description>
      <pubDate>Tue, 06 Nov 2012 07:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286090#M59712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-06T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286091#M59713</link>
      <description>Dear Shong, 
&lt;BR /&gt;I have another situation where I want to create a connection using configuration file. At tMysqlConnection, I don't want to put any values at all. My intention is to create a database connection that thanks to a file not thanks to Talend. 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;naim</description>
      <pubDate>Fri, 09 Nov 2012 02:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286091#M59713</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-09T02:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286092#M59714</link>
      <description>Hi &lt;BR /&gt;No, it is impossible to create a db connection from a file. This task have to be done on DB component. As I said, the file can store the db connection information, the job read these data and create db connection on DB component dynamically.</description>
      <pubDate>Fri, 09 Nov 2012 03:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286092#M59714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-09T03:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286093#M59715</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thank you for the information. 
&lt;BR /&gt;I have read the user document about tContextLoad. I just need to clarify what is the use of tContextLoad because I thought that tContextLoad will automatically load variables that I have defined in the config file. But when I want to connect a db; tMysqlConnection, i need to redefine the context variables exactly the same like variables in config file. 
&lt;BR /&gt;Actually, I just couldn't grasp the idea of how contextload is working. 
&lt;BR /&gt;Regards, 
&lt;BR /&gt;naim</description>
      <pubDate>Fri, 09 Nov 2012 08:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286093#M59715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-09T08:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286094#M59716</link>
      <description>Yes, that's what exactly the tContextLoad component do. I think you define the configure the schema correctly. Let's say that you have two context variables in the job, host and dbname, the config file have the contents as below(note that the data format, host is the name of context variable, ":" is column separator, it can be other character, set the corresponding character in Field separator on tFileInputDelimited component): 
&lt;BR /&gt;host:192.168.0.23 
&lt;BR /&gt;dbname:talend 
&lt;BR /&gt;on schema of tFileInputDelimited, add two columns, key and value. // the column name must be key and value. 
&lt;BR /&gt;on tContextLoad, check the box 'print operation', and you will see the detailed load operation on the console during the job execution. 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 10 Nov 2012 00:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286094#M59716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-10T00:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286095#M59717</link>
      <description>Hi Shong,
&lt;BR /&gt;
&lt;BR /&gt;Thank you for the reply.
&lt;BR /&gt;I understand and have followed through all of your steps mentioned above.Sorry if I'm asking this twice but tContextLoad actually doesn't load visibly, automatically the variables from a file (external) into the Job contexts in Talend isn't it? It's just set and read the variables during Job execution when I check the 'print operation' right? Because in the Job context panel, there is no context variables at all been loaded after I hit run.
&lt;BR /&gt; 
&lt;BR /&gt;Thank You 
&lt;BR /&gt;Regards,
&lt;BR /&gt;Naim</description>
      <pubDate>Wed, 14 Nov 2012 02:17:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286095#M59717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-14T02:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286096#M59718</link>
      <description>Hi&lt;BR /&gt;Can you email me your job and the file which contains the variable value? I will see what are you doing wrong.</description>
      <pubDate>Wed, 14 Nov 2012 02:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286096#M59718</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-14T02:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286097#M59719</link>
      <description>Hi Shong,
&lt;BR /&gt;Do you have any idea about the job that I have sent through your email?
&lt;BR /&gt;Regards,
&lt;BR /&gt;Naim.</description>
      <pubDate>Fri, 23 Nov 2012 01:12:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286097#M59719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-23T01:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286098#M59720</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi Shong,&lt;BR /&gt;Do you have any idea about the job that I have sent through your email?&lt;BR /&gt;Regards,&lt;BR /&gt;Naim.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi 
&lt;BR /&gt;Sorry, I did't receive your email yet, can you try it again? 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 24 Nov 2012 18:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286098#M59720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-24T18:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect tContextLoad to tMysqlConnection</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286099#M59721</link>
      <description>Hi,&lt;BR /&gt;I have sent the job into you email accounts.&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 27 Nov 2012 06:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-connect-tContextLoad-to-tMysqlConnection/m-p/2286099#M59721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-27T06:20:08Z</dc:date>
    </item>
  </channel>
</rss>

