문제

We are using MYSQL as our production database and we have setup another salve for read requests. Time to time various database users can execute insert/update queries on master database. If we want identify those executed queries (auditing/troubleshooting) we are using mysql bingos for it (reading after decoding it). From mysql binlog we can identify the query but we cant identify the executed user. is their a way to get that query executed user info into binlog. Enable general log wont be a option due to performance issues.

도움이 되었습니까?

해결책

Not sure about general log, but this behavior belongs to auditing system. If you don't insist to write into binlog, both Oracle and Percona offer solutions:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 dba.stackexchange
scroll top