Areso / db-events-notify-tool

This three step installation project allows you to be notified of new inserts in table of a database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

db events notify tool

This three step installation project allows you to be notified of new inserts in table of a database:
  1. edit configs
    • edit config.txt (if needed)
    • edit config-mysql.txt (you can find example in config-mysql-example.txt)
    • edit config-sms-ru.txt (you can find example in config-mysql-example.txt)
  2. run python3 installation-mysql.py (if needed, install mysql.connector first via sudo python3 pip install mysql-connector)
  3. add mysql-dbevents-notify.py in crontab or systemd to autorun watcher after reboot

The test insert to try on the tracker project:
INSERT INTO `accounts`(`id_account`, `email`, `passwordh`, `id_company_fk`, `date_of_reg`, `is_blocked`) VALUES (null,"vasya@mail.ru","hash",null,null,0)

About

This three step installation project allows you to be notified of new inserts in table of a database

License:MIT License


Languages

Language:Python 100.0%