Click here to Skip to main content
16,014,866 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
As the title says i'm looking for something like SqlTableDependency but for MySql that is usable for free. I've been searching for some time if there are none are there any alternatives ? I need it to be able to notify if data changed in the database on a specific query

Link to the SqlTableDependency

What I have tried:

I have tried Devart.data.MySql but apparently you need a license for that .
Posted
Updated 4-Feb-19 1:54am

As far as i know, there's no free alternative. And seems that Devart environment is the only one.
 
Share this answer
 
Comments
Schooka 28-Feb-18 15:17pm    
damn that sucks... i guess i'll just have to make it a polling system then.
Maciej Los 28-Feb-18 15:38pm    
Use different database instead. ;)
Schooka 28-Feb-18 15:43pm    
How do i manage to do that. i rent a server but i only have Mysql i think , i can install other things but i'm not that experienced in the entire Server Management thing
One option is to make MySQL write an empty (auto incremented filename) file each time an update is performed into a folder. Best way to do this is either to use Triggers or to encapsulate your functionality into Stored Procedures and call the update function after each completes. You will ofc need permissions in MySQL to write to files.

Then you can use FileSystemWatcher in C#, point it to the folder and each time an update on the database takes place an event will be fired.

Not perfect, but it works. Look elsewhere if you need fast real-time updates, but on a local LAN with 10-20 users this should be fine.

Alex.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900