[MDEV-6369] Audit Plugin 1.1.7 not starting for *MySQL* 5.5 Created: 2014-06-20  Updated: 2014-06-29  Resolved: 2014-06-29

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.38
Fix Version/s: 5.5.38

Type: Bug Priority: Major
Reporter: Chris Calender (Inactive) Assignee: Alexey Botchkov
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows, Linux, Audit Plugin 1.1.7



 Description   

The latest MariaDB audit plugin is failing to load on MySQL 5.5.

I've tested MySQL 5.5.8 and 5.5.38 on Windows. In each case it fails, though with some slightly differing error messages:

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.5.8-log |
+-----------+
 
mysql> INSTALL PLUGIN server_audit SONAME 'server_audit.dll';
ERROR 1126 (HY000): Can't open shared library 'C:\Program Files\MySQL\mysql-5.5.8\lib/plugin/server_audit.dll' (errno: 2 )
 
mysql> select version();
+------------+
| version()  |
+------------+
| 5.5.38-log |
+------------+
 
mysql> INSTALL PLUGIN server_audit SONAME 'server_audit.dll';
ERROR 1126 (HY000): Can't open shared library 'C:\Program Files\MySQL\MySQL Server 5.5\lib\plugin\server_audit.dll' (errno: 127 The specified procedure could not be found.)

Here is the output on MySQL 5.5.8 Linux:

mysql> INSTALL PLUGIN server_audit SONAME 'server_audit.so';
ERROR 1126 (HY000): Can't open shared library 'server_audit.so' (errno: 0 API version for AUDIT plugin is too different)

The same plugin loads fine in MariaDB 5.5:

MariaDB [(none)]> select version();
+----------------+
| version()      |
+----------------+
| 5.5.38-MariaDB |
+----------------+
1 row in set (0.01 sec)
 
MariaDB [(none)]> INSTALL PLUGIN server_audit SONAME 'server_audit.dll';
Query OK, 0 rows affected (0.01 sec)



 Comments   
Comment by Alexey Botchkov [ 2014-06-26 ]

Patch for the Windows part:
http://lists.askmonty.org/pipermail/commits/2014-June/006262.html

Comment by Alexey Botchkov [ 2014-06-29 ]

Complete fix:
http://lists.askmonty.org/pipermail/commits/2014-June/006266.html

Generated at Thu Feb 08 07:11:22 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.