10bet网址
Security in MySQL
Related Documentation Download this Excerpt
PDF (US Ltr)- 2.3Mb
PDF (A4)- 2.4Mb


6.5 MySQL Enterprise Audit

Note

MySQL Enterprise Audit is an extension included in MySQL Enterprise Edition, a commercial product. To learn more about commercial products, seehttps://www.mysql.com/products/.

MySQL Enterprise Edition includes MySQL Enterprise Audit, implemented using a server plugin namedaudit_log. MySQL Enterprise Audit uses the open MySQL Audit API to enable standard, policy-based monitoring, logging, and blocking of connection and query activity executed on specific MySQL servers. Designed to meet the Oracle audit specification, MySQL Enterprise Audit provides an out of box, easy to use auditing and compliance solution for applications that are governed by both internal and external regulatory guidelines.

安装后,审计插件支持MySQL爵士ver to produce a log file containing an audit record of server activity. The log contents include when clients connect and disconnect, and what actions they perform while connected, such as which databases and tables they access.

After you install the audit plugin (seeSection 6.5.2, “Installing or Uninstalling MySQL Enterprise Audit”), it writes an audit log file. By default, the file is namedaudit.login the server data directory. To change the name of the file, set theaudit_log_filesystem variable at server startup.

By default, audit log file contents are written in new-style XML format, without compression or encryption. To select the file format, set theaudit_log_formatsystem variable at server startup. For details on file format and contents, seeSection 6.5.4, “Audit Log File Formats”.

For more information about controlling how logging occurs, including audit log file naming and format selection, seeSection 6.5.5, “Configuring Audit Logging Characteristics”. To perform filtering of audited events, seeSection 6.5.7, “Audit Log Filtering”. For descriptions of the parameters used to configure the audit log plugin, seeAudit Log Options and Variables.

If the audit log plugin is enabled, the Performance Schema (seeMySQL Performance Schema我)相关仪器的使用t. To identify the relevant instruments, use this query:

SELECT NAME FROM performance_schema.setup_instruments WHERE NAME LIKE '%/alog/%';