失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > [MySQL]Software caused connection abort: recv failed 问题分析与解决

[MySQL]Software caused connection abort: recv failed 问题分析与解决

时间:2022-09-23 16:00:28

相关推荐

[MySQL]Software caused connection abort: recv failed 问题分析与解决

原文:/chuan122345/article/details/4894398

在项目开发时,遇到该异常,通过搜索在mysql官方网站上发现如下说明:

I am trying to connect to my MySQL server within my application, but I get the following error and stack trace:

.SocketException MESSAGE: Software caused connection abort: recv failed STACKTRACE: .SocketException: Software caused connection abort: recv failed at .SocketInputStream.socketRead0(Native Method) at .SocketInputStream.read(Unknown Source) at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1392) at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:1414) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:625) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1926) at com.mysql.jdbc.Connection.<init>(Connection.java:452) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:411)

The error probably indicates that you are using a older version of the Connector/J JDBC driver (2.0.14 or 3.0.x) and you are trying to connect to a MySQL server with version 4.1x or newer. The older drivers are not compatible with 4.1 or newer of MySQL as they do not support the newer authentication mechanisms.

It is likely that the older version of the Connector/J driver exists within your application directory or yourCLASSPATHincludes the older Connector/J package

将MYSQL驱动换成高版本驱动,问题解决。

下载地址:/products/connector/

如果觉得《[MySQL]Software caused connection abort: recv failed 问题分析与解决》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。