Skip to main content
Solved

Reading & Writing to MySQL

  • May 20, 2014
  • 2 replies
  • 36 views

dilip
Contributor
Forum|alt.badge.img+5
Hi,

 

 

I am reading data for MySQL and would like to prevent migrating the same data each time i run the workbence (it will be running as a scheduled task). To do this I have created an 'export' field in MySQL, with a default value of '0'. The workbench has a tester at the start, that will only allow a value of '0' through, and at the end of the workflow, I want to change all '0' values to '1'. I get an error when trying to run this writing back to the MySQL database.

 

 

My question is this, normally I would use the database updater transformer, but this will not write to MySQL, so how would I update the MySQL database and change these values.

 

 

Many thanks in advance.

Best answer by david_r

Hi,

 

 

What kind of error are you getting from MySQL?

 

 

Also, have you tried using an SQLExecutor?

 

 

David
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

david_r
Celebrity
  • Best Answer
  • May 20, 2014
Hi,

 

 

What kind of error are you getting from MySQL?

 

 

Also, have you tried using an SQLExecutor?

 

 

David

dilip
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • May 20, 2014
Thanks David, I was trying to use the standard writer wich failed, the SQLExecutor worked a treat.

 

 

Many thanks