четверг, 30 июня 2011 г.

MySQL sys_exec UDF for 64 bit Windows

I have a 64 bit MySQL server v5.5 running on x64 Windows 2008. Today I faced with problem when I tried to add lib_mysqludf_sys.dll as UDF plugin.
This plugin works fine in 32 bit environment but not in x64:
mysql> CREATE FUNCTION sys_exec
    -> RETURNS INTEGER
    -> SONAME "lib_mysqludf_sys.dll";
ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_sys.dll' (errno: 0 )
Google didn't help so I started new project in Visual Studio and compiled it from source for x64. After few unsuccessful tries I got working dll.
Download x64 lib_mysqludf_sys.dll

1 комментарий: