[CONC-517] Windows install looks for plugins in the wrong location Created: 2020-11-14  Updated: 2022-05-23  Resolved: 2020-11-18

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.1.11
Fix Version/s: 3.2.0, 3.1.12

Type: Bug Priority: Major
Reporter: Simon Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None
Environment:

Microsoft Windows 10 Pro 64-bit
10.0.18363 Build 18363


Issue Links:
Problem/Incident
causes CONC-583 MIME type of a header file changed Closed

 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.



 Comments   
Comment by Georg Richter [ 2020-11-18 ]

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.

Comment by Simon [ 2020-11-18 ]

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.

Generated at Thu Feb 08 03:05:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.