ERROR 2103 (HY000): Lost connection to MySQL server during query or no managed connection avaiable!
问题描述:
做好oneproxy之后,通过3307端口连入oneproxy
日志也没报错。
管理端口也能进。
就是通过连接用户等陆oneproxy执行语句时,出现以下error
Lost connection to MySQL server during query or no managed connection avaiable!
mysql> show databases;
+----------+
| Database |
+----------+
| B |
| A |
+----------+
2 rows in set (0.00 sec)
mysql> use B -------------useA库的时候查询表是没有问题的
mysql> show tables;
ERROR 2103 (HY000): Lost connection to MySQL server during query or no managed connection avaiable!
解决方法:
检查配置文件 proxy.conf
proxy-master-addresses.1 = 192.168.91.129:[email protected]
proxy-master-addresses.2 = 192.168.91.130:[email protected]
proxy-group-policy.1 = A:read_failover
proxy-group-policy.2 = B:master-only
将proxy-group-policy.2 = B:master-only改为proxy-group-policy.1 = A:read_failover
之后,重启oneproxy。
查询正常,问题解决!