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

Audit Plugin 1.1.7 not starting for *MySQL* 5.5

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • 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)

        Attachments

          Activity

            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:

                Git Integration