1

I have a python script( script 1) that adds elements in a table in MySQL database using mysql.connector module, and I have another python script( script 2) that reads data from that table, I want to put a trigger on that table and each time a new element is added script 2 notice the new added element and display a message on the console.

I'm looking for something like the nodeJS npm package "mysql-events" that watches a MySQL database and runs callbacks on matched functions

1 Answer 1

0

I know this is an old question. But I was searching the same today for my work and came across this link - mysql - Run python script on Database event. Look at the answer which has been submitted by the person asking question. It might help you/someone.

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.