MyCATApache / Mycat-Server

GNU General Public License v2.0
9.51k stars 3.85k forks source link

Mycat-Server 客户端认证包连接关闭 #2907

Closed wangjuneng closed 2 years ago

wangjuneng commented 2 years ago

1、bug描述 简单清晰描述下bug现象. 1、客户端和服务端建TCP连接之后,进行认证时,出现The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. 2、invoke stack Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. at sun.reflect.GeneratedConstructorAccessor113.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:389) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1038) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:338) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2237) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2270) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2069) at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:794) at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:44) at sun.reflect.GeneratedConstructorAccessor42.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.mysql.jdbc.Util.handleNewInstance(Util.java:389) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:325) at

2、版本号(非常重要) v 1.6..

3、相关表的配置信息 schema.xml (需包含表的配置信息,mysql的连接驱动是JDBC还是native方式) rule.xml (涉及到的路由函数) server.xml(可选)

4、操作步骤

  1. '...'
  2. '....'
  3. ...

5、期望结果 A clear and concise description of what you expected to happen.

6、实际结果 A clear and concise description of what actually happened.

7、额外信息 Add any other context about the problem here.