amoeba for mysql读写分离--亲测试
环境:centos5.4amoeba:192.168.18.119
master:192.168.18.117
slave:192.168.18.116
amoeba配置如下:
8066
192.168.18.119
128
true
root
justdoit
60
com.meidusa.amoeba.net.AuthingableConnectionManager
defaultManager
3306
192.168.18.117
test
root
sdfsdf
200
200
10
600000
600000
true
true
defaultManager
3306
192.168.18.118
test
root
sdfsdf
200
200
10
600000
600000
true
true
1
server1
1
server1,server2
${amoeba.home}/conf/rule.xml
${amoeba.home}/conf/functionMap.xml
${amoeba.home}/conf/ruleFunctionMap.xml
1500
master
master
slave
true
另外保证对两个数据库你的192.168.18.119都有权限访问!在两个数据库中都执行下面的语句:
grant all on test.* to root@'192.168.18.119'> flush privileges;
页:
[1]