Hello.
I wandering if you maybe have an idea how to do that:
I'm working with C# in mono and MySql on a ubuntu platform. I would like to have an table with some colons in MySql. When something is written in the table, it should trigger an event in C# and delete the record in MySql.
Have can I do that? Should I set up an timer and then read from the MySql or is there an better way. I really don't want to use to much of CPU.
Thank's
How to MySql trigger an event in C#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
ke li2 pointsPosted Apr 23, 2010, 9:13 AM EDT
DELIMITER $$
CREATE TRIGGER tg1 AFTER INSERT ON `testme9`
FOR EACH ROW
BEGIN
\! php "/tmp/debug.php" >> /tmp/yourlog.txt
END $$
DELIMITER ;
if not, calling web service in debug.php