Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有谁知道是否可以在 mysql 5 中记录特定表的所有插入/更新查询?
我们有多个应用程序查询同一个数据库,因此在数据访问层(两个许多应用程序)中实现这一点是非常不现实的,如果我们可以在数据库的配置文件中打开一个开关就容易多了。我意识到我们可以记录所有查询,但这会对性能造成很大影响。
这个东西叫做“审计追踪”。谷歌应该会给你相当多的答案。