原文: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 问题分析与解决相关推荐

  1. Software caused connection abort: recv failed

    2019独角兽企业重金招聘Python工程师标准>>> Software caused connection abort: recv failed 博客分类: 异常 Software ...

  2. Android studio ERROR: Software caused connection abort: recv failed 解决方法

    使用Android studio打开kotlin项目时报错:ERROR: Software caused connection abort: recv failed 解决方法:修改三个文件即可 1.修 ...

  3. 使用Spring JDBC时遇到的Software caused connection abort: recv failed问题

    在使用Spring jdbc连接数据库时遇到一个头疼的问题:程序启动以后,如果长时间不访问调用,当再次调用时会报错: 引用 org.springframework.dao.DataAccessReso ...

  4. 解决:java.net.SocketException: Software caused connection abort: recv failed

    前言:最近在学习 NIO 和netty 相关知识时,在bio的模式下,遇到了 java.net.SocketException: Software caused connection abort: r ...

  5. 关于socket write error 和Software caused connection abort: recv failed 错误

    Software caused connection abort: recv failed  错误 @Overridepublic void run() {// TODO Auto-generated ...

  6. 解决SSH连接出现 Software caused connection abort 的问题

    解决SSH连接出现 Software caused connection abort 的问题 参考文章: (1)解决SSH连接出现 Software caused connection abort 的 ...

  7. linux ssh 远程登陆 报错 software caused connection abort 解决方法

    使用远程登录工具putty或者SecureCRT连接到服务器时,长时间不操作造成网络中断,出现Software caused connection abort Software caused conn ...

  8. 异常:Software caused connection abort: socket write error

    异常:Software caused connection abort: socket write error 参考文章: (1)异常:Software caused connection abort ...

  9. github上传文件遇到错误:kex_exchange_identification: read: Software caused connection abort banner exchange:

    问题场景 github上传文件时,连接不上ssh,输入ssh -T git@github.com,检查连接,出现以下错误: kex_exchange_identification: read: Sof ...

最新文章

  1. python测试开发自学教程-python测试开发学习笔记
  2. sql中union和union all的区别
  3. navcat定时备份mysql_Linux实现MYSQl数据库的定时备份
  4. 触发2次 layui_[电路小知识篇]D型触发器电路
  5. ubuntu16.04下ROS操作系统学习笔记(二)命令工具了解和仿真小海龟
  6. 【ROM定制】Fastboot Enhance —— 适合人类使用的Fastboot + Payload.bin 解包工具箱
  7. php pcre回溯攻击,PHP利用PCRE回溯次数限制绕过某些安全限制
  8. 神秘海域:顶级工作室“顽皮狗”成长史(中)
  9. 程序员对老板说:老子,明天不上班!结果...
  10. Arduino实验——EMW3080实现WiFi连接
  11. Google Research等机构提出新的AI算法以了解人脑网络中的电刺激效应
  12. UC伯克利教授Stuart Russell人工智能基础概念与34个误区 (公号回复“AI基础概念”可下载PDF资料)
  13. 网络是新冷战,人工智能是军备竞赛
  14. MT7688 使用 u-boot-2021.01
  15. mysql gitd 主从搭建_Yii2 优雅的 Active Record - SegmentFault 思否
  16. 保存系统的操作日志,通过swagger注解获取请求描述(通用版本)
  17. 自制2.4G全向天线的制作方法
  18. 基于 UltraScale FPGA+华为海思 ARM 的高性能综合视频图像处理板 / FPGA+ARM
  19. JAVA EE-JS
  20. divi模板下载_赞助商:Divi 3.0

热门文章

  1. 推荐一款word转pdf超好用的包:aspose-words(解决中文乱码)
  2. 局域网共享磁盘或文件夹访问
  3. 《大江大河2》中教科书般的精神自救-如何让反感你的人欣赏你
  4. pig和piglet有什么区别?
  5. 洛谷P3352 [ZJOI2016]线段树
  6. 深度学习-2.机器学习基础
  7. 爱加密:终止手游之殇,全面解决手游安全问题
  8. 电子工程师自学成才pdf_给新开发人员的最佳建议:自学成才的软件工程师的建议...
  9. 数据挖掘十大经典算法(转存)
  10. 精通CSS.DIV网页样式与布局(四) ——页面背景