环境:ubuntu12.04.1mysql5.6.8编译:cmake.\-DMAKE_INSTALL_PREFIX:PATH=/usr/local/mysql\-DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock\-DDEFAULT_CHARSET=latin1\-DDEFAULT_EXTRA_CH...
环境:ubuntu 12.04.1 mysql5.6.8
编译:
cmake . \
-DMAKE_INSTALL_PREFIX:PATH=/usr/local/mysql \
-DMYSQL_UNIX_ADDR=/data/mysql/mysql.sock \
-DDEFAULT_CHARSET=latin1 \
-DDEFAULT_EXTRA_CHARSETS:STRING=utf8,gbk \
-DMYSQL_DATADIR:PATH=/data/mysql/data \
-DMYSQL_USER=mysql \
-DMYSQL_TCP_PORT=3306 \
-DMYSQL_DYNAMIC_PLUGIN=1
make && make install
.....
/etc/init.d/mysqld restart (到此一切正常)
安装memcache插件
mysql> SELECT @@plugin_dir;
+----------------------------
| @@plugin_dir |
+-----------------------------+
| /usr/local/mysql/lib/plugin |
+-----------------------------+
1 ROW IN SET (0.00 sec)
把编译好的libmemcache.so拷贝到/usr/local/mysql/lib/plugin
root@vm:~/mysql-5.6.8-rc# cp /usr/local/lib/libmemcached.so /usr/local/mysql/lib/plugin/
mysql> install plugin daemon_memcached soname "libmemcached.so";
ERROR 1127 (HY000): Can't find symbol '_mysql_plugin_interface_version_' in library
为什么会出现这样的错误?请高手指点!谢谢了(libmemcached.so 是用源代码libmemcached-1.0.13.tar.gz编译后自动在/usr/local/lib下)
展开