[Practice] mariadb audit and mariadb Audit

Source: Internet
Author: User

[Practice] mariadb audit and mariadb Audit

--- Create the directory mkdir/usr/local/mysql/mysql_logs/auditlogchown mysql: mysql/usr/local/mysql/mysql_logs/auditlog/-- 2. INSTALL the audit plug-in show global variables like 'plugin _ dir'; INSTALL plugin server_audit SONAME 'server _ audit. so '; SELECT * from information_schema.plugins where plugin_name = 'server _ audit'; show global variables like 'server _ audit % '; ------ 3. modify the mysql configuration file vi/etc/my. cnfserver_audit = login = 'connect, QUERY, TABLE 'server _ audit_logging = login = 10Gserver_audit_file_path =/usr/local/mysql/mysql_logs/auditlog/server_audit.log ----- 4. create a test user grant all privileges on wind. t1 TO 'wind '@' % 'identified by 'wind' with grant option; flush privileges;

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.