2

我一直在尝试使用 gearman mysql udf。我已经从http://gearman.org/index.php?id=download下载了 tarball 并按照http://gearman.org/index.php?id=mysql_udf_readme上给出的说明安装了它
我正在尝试创建 gman_do mysql中的函数,但我收到一些错误
错误是-

mysql> create function gman_do returns string soname "libgearman_mysql_udf.so";
ERROR 1126 (HY000): Can't open shared library 'libgearman_mysql_udf.so' (errno: 22 /usr/local/lib/libgearman_mysql_udf.so: cannot open shared object file: No such file or directory)

我必须更改共享库的一些变量路径。MySQL应该找到我libgearman_mysql_udf.soplugindir安装/usr/lib/mysql/plugin时使用 -

bash configure --with-mysql=/usr/local/mysql/bin/mysql_config --libdir=/usr/lib/mysql/plugin
make
make install

我应该怎么办?我应该如何在其他目录中MySQL查找.so文件,例如.gearman_mysql_udfplugindir

4

0 回答 0