This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-16. For the latest, interactive version please visit https://mariadb.com/kb/.

Install Maria DB Audit plugin to mysql

Hi

I tired to installed maria db audit plugin to mysql community server 5.7.I used below command to install plugin to database.

Command INSTALL PLUGIN server_audit SONAME 'server_audit.so'

However I received below error message.

Error 1126(HY000):Can't open shared library sr/lib64/mysq;/plugin/server_audit.so' (errorno:2 /usr/lib64/nysql/plugin/server_audit.so: undefined symbol:safe_mutex_lock)

Pls let me know how to overcome above issue.

Thank

Answer

First, you've got, somehow, the debug build of the MariaDB Audit plugin. Did you build it yourself? "safe_mutex" is only present in debug builds, it normally exists neither in MariaDB nor in MySQL.

But then, even if you'd had a correct build of the Audit plugin, it would still not work with 5.7 at the moment. Fixing this is MDEV-9106, please subscribe to it and you'll be notified when this issue is fixed.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.