Amoeba 变形虫
Amoeba 变形虫服务默认端口号8066
该软件能识别读写请求,把读写请求分配到不同的后端MySQL服务器
不用像MySQL-router用端口进行区分读写。
实验:
为了查看读写分离效果 本实验就不配置主从复制
1、 首先IP规划
amoeba:192.168.1.76
master:192.168.1.74
slave1: 192.168.1.75
slave2: 192.168.1.77
首先 master、slave1 、Slave2 授权相同账号密码能登陆到自己(给Amoeba这台机器用)。
grant all on *.* to amoeba@'%' identified by '123456';
刷新权限flush privileges;
Master配置:
grant all on *.* to amoeba@'%' identified by '123456';
slave1: 配置:
grant all on *.* to amoeba@'%' identified by '123456';
slave2: 配置:
grant all on *.* to amoeba@'%' identified by '123456';
<