[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 |
||
| Issue Links: |
|
||||||||
| 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:
However, the standard installation path is: 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. |