When a new row in database is added, an external command line program must be invoked

后端 未结 4 1008
长发绾君心
长发绾君心 2020-12-01 23:00

Is it possible for MySQL database to invoke an external exe file when a new row is added to one of the tables in the database?

I need to monitor the changes in the

4条回答
  •  再見小時候
    2020-12-01 23:13

    1. you could do what replication does: hang on the 'binary log'. setup your server as a 'master server', and instead of adding a 'slave server', run mysqlbinlog. you'll get a stream of every command that modifies your database.

      • step in 'between' the client and server: check MySQLProxy. you point it to your server, and point your client(s) to the proxy. it lets you interpose Lua scripts to monitor, analyze or transform any SQL command.

提交回复
热议问题