Is there a way to watch a mysql database for changes using perl?

后端 未结 3 431
一个人的身影
一个人的身影 2021-01-05 10:26

I\'m looking for a solution similar to the inotify method of watching files for changes. I\'m aware that I could watch the binlog file of the mysql database and run queries

3条回答
  •  悲哀的现实
    2021-01-05 11:16

    As far as MyISAM tables go you can watch information_schema.TABLES.UPDATE_TIME. That would save you from polling all tables you're interested in. For InnoDB, watching binlog is the best I can think of.

提交回复
热议问题