关于MySQL AUDIT(审计)那点事
2017年06月02日MySQL社区版本最新版为MySQL_5.7.18,但是该版本不带AUDIT功能(MySQL Enterprise Edition自带AUDIT功能), 因此需要加载plugin(第三方插件),当前插件有以下几种: 备注:MySQL企业版本才能使用这个audit插件哦,MySQL社区版慢慢等着吧 备注:人家说了,我这个插件只能给Percona_sever使用,我Percona来维护 下载地址: http://dl.bintray.com/mcafee/mysql-audit-plugin/ 部署可参考: http://blog.csdn.net/bzfys/article/details/53695855 个人发现该插件貌似不支持审计日志自动切割,而且日志格式为JSON格式,个人感觉不易查看,以及时间格式需要转换 eg:"msg-type":"header","date":"1494935783266","audit-version":"1.1.4-707","audit-protocol-version":"1.0","hostname":"salt-master","mysql-version":"5.7.18-log","mysql-program":"/usr/sbin/mysqld","mysql-socket":"/data/mysql/mysql