#查看插件是否启用 mysql> show plugins; +----------------------------+----------+--------------------+--------------------+---------+ | Name | Status | Type | Library | License | +----------------------------+----------+--------------------+--------------------+---------+ | binlog | ACTIVE | STORAGE ENGINE | NULL | GPL | ............................................................................................. | AUDIT | ACTIVE | AUDIT | libaudit_plugin.so | GPL | +----------------------------+----------+--------------------+--------------------+---------+
#查看审计插件的版本 mysql> show global status like '%audit%'; +------------------------+-------------+ | Variable_name | Value | +------------------------+-------------+ | Audit_protocol_version | 1.0 | | Audit_version | 1.1.13-1008 | +------------------------+-------------+ 2 rows in set (0.01 sec)
#查看审计日志路径 mysql> SHOW GLOBAL VARIABLES LIKE 'audit_json_file'; +-----------------+-------+ | Variable_name | Value | +-----------------+-------+ | audit_json_file | ON | +-----------------+-------+ 1 row in set (0.00 sec)