Skip to main content
Solved

Reading & Writing to MySQL


dilip
Contributor
Forum|alt.badge.img+2
  • Contributor
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
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, 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
Evangelist
  • 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+2
  • Author
  • Contributor
  • May 20, 2014
Thanks David, I was trying to use the standard writer wich failed, the SQLExecutor worked a treat.

 

 

Many thanks

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings