[MySQL]Software caused connection abort: recv failed 问题分析与解决
原文:http://blog.csdn.net/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:
java.net.SocketException MESSAGE: Software caused connection abort: recv failed STACKTRACE: java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInputStream.socketRead0(Native Method) at java.net.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 your CLASSPATH includes the older Connector/J package
将MYSQL驱动换成高版本驱动,问题解决。
下载地址:http://www.mysql.com/products/connector/
转载于:https://www.cnblogs.com/black/p/5171604.html
[MySQL]Software caused connection abort: recv failed 问题分析与解决相关推荐
- Software caused connection abort: recv failed
2019独角兽企业重金招聘Python工程师标准>>> Software caused connection abort: recv failed 博客分类: 异常 Software ...
- Android studio ERROR: Software caused connection abort: recv failed 解决方法
使用Android studio打开kotlin项目时报错:ERROR: Software caused connection abort: recv failed 解决方法:修改三个文件即可 1.修 ...
- 使用Spring JDBC时遇到的Software caused connection abort: recv failed问题
在使用Spring jdbc连接数据库时遇到一个头疼的问题:程序启动以后,如果长时间不访问调用,当再次调用时会报错: 引用 org.springframework.dao.DataAccessReso ...
- 解决:java.net.SocketException: Software caused connection abort: recv failed
前言:最近在学习 NIO 和netty 相关知识时,在bio的模式下,遇到了 java.net.SocketException: Software caused connection abort: r ...
- 关于socket write error 和Software caused connection abort: recv failed 错误
Software caused connection abort: recv failed 错误 @Overridepublic void run() {// TODO Auto-generated ...
- 解决SSH连接出现 Software caused connection abort 的问题
解决SSH连接出现 Software caused connection abort 的问题 参考文章: (1)解决SSH连接出现 Software caused connection abort 的 ...
- linux ssh 远程登陆 报错 software caused connection abort 解决方法
使用远程登录工具putty或者SecureCRT连接到服务器时,长时间不操作造成网络中断,出现Software caused connection abort Software caused conn ...
- 异常:Software caused connection abort: socket write error
异常:Software caused connection abort: socket write error 参考文章: (1)异常:Software caused connection abort ...
- github上传文件遇到错误:kex_exchange_identification: read: Software caused connection abort banner exchange:
问题场景 github上传文件时,连接不上ssh,输入ssh -T git@github.com,检查连接,出现以下错误: kex_exchange_identification: read: Sof ...
最新文章
- python测试开发自学教程-python测试开发学习笔记
- sql中union和union all的区别
- navcat定时备份mysql_Linux实现MYSQl数据库的定时备份
- 触发2次 layui_[电路小知识篇]D型触发器电路
- ubuntu16.04下ROS操作系统学习笔记(二)命令工具了解和仿真小海龟
- 【ROM定制】Fastboot Enhance —— 适合人类使用的Fastboot + Payload.bin 解包工具箱
- php pcre回溯攻击,PHP利用PCRE回溯次数限制绕过某些安全限制
- 神秘海域:顶级工作室“顽皮狗”成长史(中)
- 程序员对老板说:老子,明天不上班!结果...
- Arduino实验——EMW3080实现WiFi连接
- Google Research等机构提出新的AI算法以了解人脑网络中的电刺激效应
- UC伯克利教授Stuart Russell人工智能基础概念与34个误区 (公号回复“AI基础概念”可下载PDF资料)
- 网络是新冷战,人工智能是军备竞赛
- MT7688 使用 u-boot-2021.01
- mysql gitd 主从搭建_Yii2 优雅的 Active Record - SegmentFault 思否
- 保存系统的操作日志,通过swagger注解获取请求描述(通用版本)
- 自制2.4G全向天线的制作方法
- 基于 UltraScale FPGA+华为海思 ARM 的高性能综合视频图像处理板 / FPGA+ARM
- JAVA EE-JS
- divi模板下载_赞助商:Divi 3.0