From 4b0f09fc09b8c93c7412d2be277946f548bcac95 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Wed, 2 Apr 2025 14:15:54 +0200 Subject: [PATCH] Issue #1482: fix not found plugins by libmariadb, by not setting the MYSQL_PLUGIN_DIR option on Linux --- source/dbconnection.pas | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index 8430449e..83c027f4 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -2565,9 +2565,11 @@ begin if Parameters.WantSSL then ClientFlags := ClientFlags or CLIENT_SSL; + {$IfDef WINDOWS} // Point libmysql to the folder with client plugins PluginDir := AnsiString(ExtractFilePath(ParamStr(0))+'plugins'); SetOption(FLib.MYSQL_PLUGIN_DIR, PAnsiChar(PluginDir)); + {$EndIf} // Enable cleartext plugin if Parameters.CleartextPluginEnabled then