1

Alright I know you might find this as a silly question, but I'd like to ask you if there's a way to have a listener to MySQL like Firebase can do?

"...Firebase only sends updates to our app when data changes." - from learnhowtoprogram article

To make my question clear, I'm using nodejs, express & socket.io and I really wanted to make a simple web app which will automatically update its data once the database(MySQL) changes.

I've made a prototype using socket.io which listens to the client and emit new data from MySQL and vice versa. Yes, it works but in the long run it's horrible.

I hope you could help me with the concepts.

Thanks!

1 Answer 1

1

yes you can do that if you are using nodejs and socket try this lib : mysql-events

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

2 Comments

Thanks MrCharif. I'll check this lib out.
Unfortunately, I wasn't able to fully utilize mysql-events due to binlog_format is fixed in "row". I don't have the privilege to set the default binlog_format= from "mixed" to "row".

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.