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

MariaDB client plugin path is wrong

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Fixed
    • 10.4.6
    • 10.2.26, 10.3.17, 10.4.7
    • Plugins
    • None
    • Linux Centos 7.6

    Description

      When connecting using ed25519, the client has the default plugin path wrong. If using a specific plugin path, in the config file or on the command line, it works, even if this is set in to the same value as the default.
      Extract from /etc/my.cnf.d/server.cnf

      [mysqld]
      plugin_load_add = auth_ed25519
      

      Create and grant access to a user:

      create user root2@'192.168.142.210' IDENTIFIED VIA ed25519 USING PASSWORD('root2');
      grant all on *.* to  root2@'192.168.142.210';
      

      Connect to MariaDB using ed25519 authentification:

      $ mysql -u root2 -proot2 -h 192.168.142.210
      ERROR 1045 (28000): Plugin client_ed25519 could not be loaded: /usr//usr/lib64/mysql/plugin/client_ed25519.so: cannot open shared object file: No such file or directory
      

      Note the path to the plugin, there is an extra leading "/usr" there. Setting the path to the correct one works fine:

      $ mysql -u root2 -proot2 -h 192.168.142.210 --plugin-dir=/usr/lib64/mysql/plugin
      Welcome to the MariaDB monitor.  Commands end with ; or \g.
      Your MariaDB connection id is 21
      Server version: 10.4.6-MariaDB MariaDB Server
       
      Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
       
      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
       
      MariaDB [(none)]>
      

      The above also work when setting the correct path in /etc/my.cnf.c/client.cnf or some other appropriate config file.

      Attachments

        Issue Links

          Activity

            People

              georg Georg Richter
              karlsson Anders Karlsson
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.