mysql8审计_2.3.8 mysql安全之审计

6、 MySQL安全之审计管理

审计:记录你的操作,方便以后查证据,但是生产环境数据库本身不建议开启,影响性能,但可以使用第三方审计

6.1 开源审计功能 mysql Audit Pluging

mysq15.7企业版自带审计功能,需要付费

社区版可以用开源的 mysqL Audit Pluging( McAfee提供的)

下载地址:

https://github.com/mcafee/mysql-audit

涉及参数:

audit_json_file = on

plugin-load = AUDIT=libaudit_plugin.so

audit_record_cmds = 'insert,delete,update,create,drop,alter,grant,truncate'

audit_json_log_file = /var/log/mysql/mysql-audit.json

audit_offsets = 7824, 7872, 3632, 4792, 456, 360, 0, 32, 64, 160, 536, 7988, 4360, 3648, 3656, 3660, 6072, 2072, 8, 7056, 7096, 7080, 13464, 148, 672

不设置 audit_record_cmds 参数,所有的DDL,DML全记录

https://github.com/mcafee/mysql-audit

https://bintray.com/mcafee/mysql-audit-plugin/release/1.1.7-866

https://bintray.com/mcatee/mysql-audit-plugin/release

mysql root@localhost:auditdb> show global variables like 'plugin_dir';

+---------------+--------------------------+

| Variable_name | Value |

+---------------+--------------------------+

| plugin_dir | /usr/lib64/mysql/plugin/ |

+---------------+--------------------------+

https://bintray.com/mcafee/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值