归档文章 (2011-2017)blogarchiveddate2017/04/01查看审计状态show variables like '%audit%';如果没有,则先查看审计插件目录SHOW VARIABLES LIKE 'plugin_dir';启用审计# * Audit Settings # plugin-load=server_audit=server_audit.so server_audit=FORCE_PLUS_PERMANENT server_audit_events=CONNECT,QUERY,TABLEserver_audit_logging=ON重启service restart mysqlvia https://mariadb.com/kb/en/mariadb/server_audit-system-variables/#server_audit_events