一、下载插件:
https://bintray.com/mcafee/mysql-audit-plugin/release/1.1.7-805#files
二、解压插件复制到mysql lib库插件目录下.../usr/local/mysql/lib/plugin/
chmod +x libaudit_plugin.so
chown mysql:mysql libaudit_plugin.so
五、mysql...libaudit_plugin.so:
install plugin audit soname 'libaudit_plugin.so';
六、开启设计功能
set global audit_json_file=1;
七、添加配置到...mysql 配置文件
audit_record_cmds='insert,delete,update,create,drop,alter,grant,truncate'
audit_json_file...=/data/logs/mysql/mysql_audit.json #日志路径
audit_offsets=7824, 7872, 3632, 4792, 456, 360, 0, 32, 64,