Where does mysql save the path for gearman mysql udf files?

吃可爱长大的小学妹 提交于 2019-12-24 04:16:28

问题


I have been trying to use gearman mysql udf. I have downloaded tarball from http://gearman.org/index.php?id=download and installed it with the instructions given on http://gearman.org/index.php?id=mysql_udf_readme
I am trying to create the gman_do function in mysql, but I am getting some error
The Error is-

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)

I must have changed some variable path for the shared library. MySQL should find the libgearman_mysql_udf.so from the plugindir which is /usr/lib/mysql/plugin which was given by me at the time of the installation using -

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

What should I do? Where how should I make MySQL look for the .so files of the gearman_mysql_udf to some other directory, say the plugindir.

来源:https://stackoverflow.com/questions/12476391/where-does-mysql-save-the-path-for-gearman-mysql-udf-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!