You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
INFO | jvm 1 | 2023/04/20 01:38:57 | 2023-04-20 01:38:57,710[ERROR]com.alibaba.druid.pool.DruidDataSource.run:2803create connection SQLException, url: jdbc:mysql://47.104.250.4:3306/mydb1?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true, errorCode 0, state 08001
INFO | jvm 1 | 2023/04/20 01:38:57 | java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:110)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:903)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:828)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:453)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:246)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:198)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1657)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1723)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2801)
INFO | jvm 1 | 2023/04/20 01:38:57 | Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
INFO | jvm 1 | 2023/04/20 01:38:57 |
INFO | jvm 1 | 2023/04/20 01:38:57 | The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
INFO | jvm 1 | 2023/04/20 01:38:57 | at sun.reflect.GeneratedConstructorAccessor36.newInstance(Unknown Source)
INFO | jvm 1 | 2023/04/20 01:38:57 | at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:151)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.exceptions.ExceptionFactory.createCommunicationsException(ExceptionFactory.java:167)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:89)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.NativeSession.connect(NativeSession.java:144)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:847)
INFO | jvm 1 | 2023/04/20 01:38:57 | ... 7 common frames omitted
INFO | jvm 1 | 2023/04/20 01:38:57 | Caused by: java.net.ConnectException: 拒绝连接 (Connection refused)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.net.PlainSocketImpl.socketConnect(Native Method)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)
INFO | jvm 1 | 2023/04/20 01:38:57 | at java.net.Socket.connect(Socket.java:606)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:155)
INFO | jvm 1 | 2023/04/20 01:38:57 | at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:63)
INFO | jvm 1 | 2023/04/20 01:38:57 | ... 9 common frames omitted
莫非不支持写节点的故障切换 ??
The text was updated successfully, but these errors were encountered:
在我部署中:Master 1 和 Master 2 双主,然后 Master 1 模拟宕机
日志报错:
莫非不支持写节点的故障切换 ??
The text was updated successfully, but these errors were encountered: