一个MYSQL的插件,让MYSQL支持NOSQL
好处,跟MYSQL公用数据.比普通CACHE方便.普通CACHE有同步数据问题
坏处,不兼容MEMCAHE,跟MEMCAHE一样没安全控制
编译与安装:
需要MYSQL编译安装的,或者你可以找到与你版本相同的MYSQL源码
yum install gcc gcc-c++ libtool make openssl-devel perl-DBI perl-DBD-MySQL rpm-build gperf readline-devel ncurses-devel time perl-Time-HiRes#下载源码并解压:http://github.com/ahiguti/HandlerSocket-Plugin-for-MySQL./autogen.sh./configure --prefix=/usr/local/handlersocket ...#还需要一些MYSQL路径,看HELPmake && make install#完成后修改 /etc/my.cnf[mysqld]loose_handlersocket_port = 9998 # 指定读请求端口号loose_handlersocket_port_wr = 9999 # 指定写请求端口号loose_handlersocket_threads = 16 # 指定读线程数目loose_handlersocket_threads_wr = 1 #进入MYSQL后执行:INSTALL PLUGIN handlersocket SONAME 'handlersocket.so'; show plugins;#查看#重启mysql#PHP 实现 https://github.com/tz-lom/HSPHP#PHP 扩展:https://github.com/kjdev/php-ext-handlersocketi
http://files.cnblogs.com/liushannet/php_handlersocketi.rar