I’ve downloaded the windows binary from http://www.mysqludf.org/lib_mysqludf_preg/ but I’m having trouble installing it.
If I run the command SHOW VARIABLES LIKE '%plugin%' it outputs the directory ‘c:/wamp/bin/mysql/mysql5.5.20/plugin’ so this is where I placed the 2 dll files.
I restarted the server and then tried:
USE mysql;
CREATE FUNCTION lib_mysqludf_preg_info RETURNS STRING SONAME 'lib_mysqludf_preg.dll';
But MySQL just said: *#1126 – Can’t open shared library ‘lib_mysqludf_preg.dll’ (errno: 2 )*
What am I missing?
MySQL version is 5.5.20
I tried to install the windows binary on Wamp, but I got the same error message as you.
I think that the 64-bit version of Wamp is still not supported by the standard compiled binary you can download from http://www.mysqludf.org/lib_mysqludf_preg/. I tried to disinstall the 64-bit version of Wamp, and installed the 32-bit version instead, and I was able to make it work using the following steps:
libpcre.dllto the MySql bin directory (e.g.c:\wamp\bin\mysql\mysql5.5.24\bin)lib_mysqludf_preg.dllto the MySql plugin directory (e.g.c:\wamp\bin\mysql\mysql5.5.24\lib\plugin)and then you can launch this:
to me it worked fine.