解压文件:五分彩盘口出租【企鹅21717-93408】
unzip audit-plugin-mysql-5.7-1.1.7-805-linux-x86_64.zip
将安装包libaudit_plugin.so文件复制到 plugin_dir目录:
root@localhost 10:07: [(none)]>show global variables like ‘plugin_dir‘;
+---------------+------------------------------+
| Variable_name | Value |
+---------------+------------------------------+
| plugin_dir | /usr/local/mysql/lib/plugin/ |
+---------------+------------------------------+
1 row in set (0.00 sec)
cp audit-plugin-mysql-5.7-1.1.7-805/lib/libaudit_plugin.so /usr/local/mysql/lib/plugin/
chmod +x /usr/local/mysql/lib/plugin/libaudit_plugin.so
安装插件:
root@localhost 10:18: [(none)]>INSTALL PLUGIN AUDIT SONAME ‘libaudit_plugin.so‘;
Query OK, 0 rows affected (0.73 sec)
原文地址:https://www.cnblogs.com/xiangfataiduo/p/10509587.html