简体   繁体   English

跟踪数据库对所有表的更改

[英]Track database changes to all tables

Like this question and it's answer: Is there a MySQL option/feature to track history of changes to records? 像这个问题一样,它的答案是否有MySQL选项/功能来跟踪记录更改的历史记录?

I have done a table history for another table which track changes like UPDATE, DELETE, INSERT. 我已经完成了另一个表的表历史记录,该表跟踪诸如UPDATE,DELETE,INSERT之类的更改。 I made an application in C# that retrieves me from table_history into a text document what I need to know about the changes. 我用C#创建了一个应用程序,该应用程序将我从table_history中检索到文本文档中,这些更改是我需要知道的。

My question is: what can I do to track all database or I make a table_history for all tables in my database, not only for one, same for that link. 我的问题是:我该怎么做才能跟踪所有数据库,或者为数据库中的所有表创建一个table_history,不仅对于一个表,对于该链接也是如此。 I need to keep a log from the entire database. 我需要保留整个数据库的日志。

Try Maxwell it is an Open source tool it will push all db changes to kafka you can later fetch from that topic 试试Maxwell,它是一个开源工具,它将所有数据库更改推送到kafka,您以后可以从该主题获取

http://maxwells-daemon.io/ http://maxwells-daemon.io/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM