There is no error in MySQL5.5 version, and an error in MySQL5.7 version: java.lang.Exception: poolName=slaves, no valid pools
Report an error
Error description:
After the service is set up, use the client to connect to the amoeba server to log in to the database, and the database content cannot be viewed
. The data code of the client error:
mysql> show databases;
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 1545595021
Current database: *** NONE ***
Code data reported by the amoeba server
java.lang.Exception: poolName=slaves, no valid pools
at com.meidusa.amoeba.net.poolable.MultipleLoadBalanceObjectPool.borrowObject(MultipleLoadBalanceObjectPool.java:183)
at com.meidusa.amoeba.mysql.handler.CommandMessageHandler.startSession(CommandMessageHandler.java:633)
at com.meidusa.amoeba.mysql.handler.MySqlCommandDispatcher.handleMessage(MySqlCommandDispatcher.java:123)
......
Cause Analysis
On line 23 of the amoeba database file, the default corresponding MySQL library is text, the MySQL version I use here is 5.7, and the default library is mysql, so I can’t find the default library. The MySQL version I built before is 5.5. Need to be modified
solution
Modify line 23 of the database file of amoeba, the default corresponding MySQL library is modified to mysql
<property name="schema">mysql</property>