MySQL errno: 2 when registering UDF
Posted on 2014-11-06
I am getting the error message
Can't open shared library 'xxx.dll' (errno: 2 )
when registering a MySQL UDF with the following command
CREATE AGGREGATE FUNCTION xxx RETURNS REAL SONAME "xxx.dll";
I have my development machine running Windows 7 Pro x64 and MySQL community server 5.0.67 and want to "move" this to a new server running Windows Server 2012 R2 Standard. I have Installed MySQL community server 5.0.67, backed-up and restored the database to the new server. All working fine. I have a few UDFs I created years ago and need them on the new server as well. I copied the .dll files into the \bin directory, but get the above error when trying to register them.
What does error 2 mean?