Bug #62449 | MySQL cannot refer the secondary dll of a UDF dll in plugin_dir (my.ini) | ||
---|---|---|---|
Submitted: | 16 Sep 2011 10:04 | Modified: | 30 Dec 2011 18:35 |
Reporter: | Do-jeon Kim | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: User-defined functions ( UDF ) | Severity: | S3 (Non-critical) |
Version: | 5.5.14-log | OS: | Windows (XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | lib_mysqludf_preg.dll, libpcre.dll, plugin_dir, udf |
[16 Sep 2011 10:04]
Do-jeon Kim
[16 Sep 2011 12:57]
Valeriy Kravchuk
I think that your plugin_dir is NOT listed in PATH environment variable at OS level. While server searches for libraries implementing UDFs in plugin_dir, if this library depends on some other library usual procedure to find DLL applies, that is, PATH is used or, on Windows, current directory for the mysqld.exe binary (bin subdirectory of server distribution in your case). I think you can put that other library in any directory that is listed in PATH.
[19 Sep 2011 5:13]
Do-jeon Kim
Yes, you're right. When I moved libpcre.dll file to the folder which written in 'path' configuration such like "C:\Windows\system32", it worked successfully. Thanks.
[19 Sep 2011 6:50]
Valeriy Kravchuk
So, I'd say this is not a bug. Just depends on where OS is looking for DLLs. Do you agree?
[28 Sep 2011 2:04]
Do-jeon Kim
Sorry for late response. Yes. I agree this is exactly not a bug. I think it's due to the wrong description at http://www.mysqludf.org/lib_mysqludf_preg Maybe this report will be an answer for http://forums.mysql.com/read.php?11,398045 Thanks for your advise.
[30 Dec 2011 18:35]
Valeriy Kravchuk
Looks like this problem was not a result of any bug in MySQL code.