开发者社区> 问答> 正文

mysql 5.5.11 UDF? 400 报错

mysql 5.5.11 UDF? 400 报错

试验环境:centos5.5 mysql 5.5.11  memcached_functions_mysql-0.9
在导入脚本时出错,如下,几天了没能解决
[root@localhoMYSQL02 sql]# /usr/local/mysql/bin/mysql -uroot -p123 <install_functions.sql
ERROR 1126 (HY000) at line 1: Can't open shared library 'libmemcached_functions_mysql.so' (errno: 0 /usr/local/mysql/lib/plugin/libmemcached_functions_mysql.so: undefined symbol: memcached_string_append)

展开
收起
爱吃鱼的程序员 2020-06-03 15:46:44 474 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    哇,有人用 memcached 插件了,关注下,有什么可分享的没啊?:)

    ######

    我现在还用的是 单独安装的 med..

    ######

    是否是 selinux 的原因?

    ######

    Our source code is in the “plugin/innodb_memcached” directory. As part of server build, it will generate two shared libraries:

    1) libmemcached.so: this is the memcached daemon plugin to MySQL

    2) innodb_engine.so: this is an InnoDB API plugin to memcached

    Make sure above two shared libraries are put in the MySQL plugin directory. You can find MySQL plugin directory by doing “select @@plugin_dir”:

    mysql> select @@plugin_dir;
    +——————————————————————————-+
    | @@plugin_dir                                                           |
    +——————————————————————————-+
    | /home/jy/work2/mysql-5.6-memcached-labs/lib/plugin |
    +——————————————————————————-+
    1 row in set (0.00 sec)

    这步做了吗?

    好像这个插件是给5.6设计的,不知道5.5装起来会不会有问题

    2020-06-03 20:54:32
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像