Linux企业实战-redis(6)gearmand

修改mysql中的内容发现redis不会同步数据

Linux企业实战-redis(6)gearmand

Linux企业实战-redis(6)gearmand

Linux企业实战-redis(6)gearmand

实现同步

启动server4中的gearmand

Linux企业实战-redis(6)gearmand

在server3中给mysql添加一个注册函数

Linux企业实战-redis(6)gearmand

Linux企业实战-redis(6)gearmand

然后编译

Linux企业实战-redis(6)gearmand

拷贝注册表插件

Linux企业实战-redis(6)gearmand

注册一个UDF的函数

Linux企业实战-redis(6)gearmand

server3中安装一个german的插件

Linux企业实战-redis(6)gearmand

然后make and make install

配置mysql的注册函数

Linux企业实战-redis(6)gearmand

查看注册函数

Linux企业实战-redis(6)gearmand

指定4730端口

Linux企业实战-redis(6)gearmand

重新导入

Linux企业实战-redis(6)gearmand

修改work端的vim worker.php

Linux企业实战-redis(6)gearmand

后台运行

Linux企业实战-redis(6)gearmand

这个时候我们修改mysql中的内容

Linux企业实战-redis(6)gearmand

发现redis也会同步

Linux企业实战-redis(6)gearmand