mysql-audit
下载:
https://bintray.com/mcafee/mysql-audit-plugin/release#files
配置文件
plugin-load=AUDIT=libaudit_plugin.so
audit_json_file=1
audit_json_file=ON
audit_record_cmds=connect,Quit,show,select,insert,update,delete
audit_whitelist_users=mysql.sys,{}