问题
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