← Back to team overview

maria-discuss team mailing list archive

Re: Answer: Building MariaDB audit plugin for Percona 5.5.37-rel35

 

Dear Folks,

On 09/07/14 16:42 +1000, Nick Urbanik wrote:
On 16/06/14 09:50 +0200, Sergei Golubchik wrote:
3. Does build/installation work in the same way as for MariaDB?

Yes.

Almost (INSTALL SONAME is not in Percona Server, iirc, and you cannot
omit the file extension from the soname).

Okay, so do I need the sourcecode of just server_audit.c, of all of
mariadb, and how do you build the library?  Do I need to build against
the Percona source code?

The answer (from experimentation) is that you need the source for all
of mariadb, and then do the following:
1. Do this in the top level directory of mariadb source code:
  cmake .
2. Change to the directory containing server_audit:
  plugin/server_audit
3. Type:
  make

Then install the resulting server_audit.so into
/usr/lib64/mysql/plugin on the Percona server, load it and use it
according to the mariadb documentation:
https://mariadb.com/sites/default/files/MariaDB%20Audit%20Plugin%20Introduction%20V1.3.pdf
--
Nick Urbanik             http://nicku.org           nicku@xxxxxxxxx
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24


References