Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-517

Windows install looks for plugins in the wrong location

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 3.1.11
    • 3.2.0, 3.1.12
    • None
    • None
    • Microsoft Windows 10 Pro 64-bit
      10.0.18363 Build 18363

    Description

      Installing the latest Windows MSI and connecting to a MySQL 8 server fails because the caching_sha2_password.dll plugin is not found. The error reports:

      Plugin caching_sha2_password could not be loaded.
      The specified module could not be found. Library path is
      'C:/Program Files/mariadb-connector-c/lib/mariadb/plugin/caching_sha2_password.dll'

      However, the standard installation path is:
      C:\Program Files\MariaDB\MariaDB Connector C 64-bit

      And caching_sha2_password.dll is installed there under lib\plugin

      The connection succeeds if I move the installed plugin directory to the incorrect path: C:\Program Files\mariadb-connector-c\lib\mariadb

      To summarise, on a standard installation, the plugins are searched in the wrong place.

      It would also be good if the plugin directory was first checked relative to the loaded libmariadb.dll - i.e. so the plugins could be put in a custom location.

      Thank you for your good work.

      Attachments

        Issue Links

          Activity

            georg Georg Richter added a comment -

            Fixed in rev. 79137a4ae1cf37ab46940d26879051ad1dfce512

            As a workaround you can set the environment variable MARIADB_PLUGIN_DIR which points to the directory which contains the client plugins.

            georg Georg Richter added a comment - Fixed in rev. 79137a4ae1cf37ab46940d26879051ad1dfce512 As a workaround you can set the environment variable MARIADB_PLUGIN_DIR which points to the directory which contains the client plugins.
            fireonthemountain Simon added a comment -

            Excellent. Fast too. I confirm that the fix works - the plugins are found in the correct place. They can also now be located in the same location as the loaded libmariadb.dll. Thank you.

            fireonthemountain Simon added a comment - Excellent. Fast too. I confirm that the fix works - the plugins are found in the correct place. They can also now be located in the same location as the loaded libmariadb.dll. Thank you.

            People

              georg Georg Richter
              fireonthemountain Simon
              Votes:
              0 Vote for this issue
              Watchers:
              2 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.