1

Does mysql support some kind of table listeners? It would be nice if I could tell mysql to trigger external script with some options when table is changed.

For example i have some script or daemon running on background and when mysql table is changed script is called script -opt1 opt2 etc

Is it possible? Is there anything like that already?

The problem is, that i need to renew cache on my app when mysql tables are changed.

Thanks ;)

1
  • What does not suffice with the 'normal' triggers calling a stored procedure? Commented Jul 4, 2011 at 9:37

1 Answer 1

1

You can call up any piece of code from inside a trigger, as suggested by Bobby; this can be a stored procedure or an external function. See here for how to create external functions (it looks a bit fraught to me though).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.