amoeba实现mysql读写分离

时间:2015-01-05 07:08:20   收藏:0   阅读:237

amoeba版本:5.1.45-mysql-amoeba-proxy-2.2.0 Source distribution

主:192.168.204.128

从:192.168.204.129

amoeba:192.168.204.130

dbServers.xml文件:

     

技术分享

技术分享

amoeba.xml文件

    

技术分享

技术分享

在主从服务器上执行:

    grant all on cjnew.* to rickcj@‘192.168.204.130‘ identified by ‘cmysqlj‘;

启动amoeba:

    /usr/local/amoeba/bin/amoeba start

 netstat -tnlp 

      ::ffff:192.168.204.130:8066

登陆amoeba:

   mysql -uroot -p -h192.168.204.130 -P8066

    



      

    

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!