请帮忙。
我已经使用maxscale了一个月,但今天发生了一些事情。它不起作用。然后我看到了以下错误:
这是我来自 Spring Boot 错误日志的错误日志:
org.springframework.dao.DataAccessResourceFailureException:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Connection killed by MaxScale: Router could not recover from connection errors
### The error may exist in com/gop/exchange/mapper/MatchResultMapper.xml
### The error may involve defaultParameterMap
### The error occurred while setting parameters
### SQL: select max(price) maxPrice ,min(price) minPrice ,sum(number) amount ,max(id) closeid,min(id) openid from match_result_udc_iep where create_time >= ? and create_time < ?
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Connection killed by MaxScale: Router could not recover from connection errors
; SQL []; Connection killed by MaxScale: Router could not recover from connection errors; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Connection killed by MaxScale: Router could not recover from connection errors
at org.springframework.jdbc.support.SQLExceptionSubclassTranslator.doTranslate(SQLExceptionSubclassTranslator.java:79) ~[spring-jdbc-4.3.7.RELEASE.jar!/:4.3.7.RELEASE]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) ~[spring-jdbc-4.3.7.RELEASE.jar!/:4.3.7.RELEASE]
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81) ~[spring-jdbc-4.3.7.RELEASE.jar!/:4.3.7.RELEASE]
我的 maxscale 版本:2.2.12 我的 maxscale 版本 maxscale 配置是:
[maxscale]
threads=auto
[server1]
type=server
address=192.168.133.15
port=3306
protocol=MySQLBackend
[server2]
type=server
address=192.168.133.16
port=3306
protocol=MySQLBackend
慕容3067478
相关分类