Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-6369

Audit Plugin 1.1.7 not starting for *MySQL* 5.5

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.38
    • Fix Version/s: 5.5.38
    • Component/s: None
    • 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)
      

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            holyfoot Alexey Botchkov added a comment -
            Show
            holyfoot Alexey Botchkov added a comment - Patch for the Windows part: http://lists.askmonty.org/pipermail/commits/2014-June/006262.html
            Show
            holyfoot Alexey Botchkov added a comment - Complete fix: http://lists.askmonty.org/pipermail/commits/2014-June/006266.html

              People

              • Assignee:
                holyfoot Alexey Botchkov
                Reporter:
                ccalender Chris Calender
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d