[MySQL]Software caused connection abort: recv failed 问题分析与解决
2016-01-25 16:45
671 查看
原文: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/
阅读(3761) | 评论(0) | 转发(0) |
1
上一篇:[Win7 x64]Eclipse Indigo 3.7 中文字体偏小解决方案: Consolas 微软雅黑混合字体!
下一篇:mysql解决自动断开8小时未曾用过的链接
相关热门文章
python 多进程之管道实例(模...
解决mysql“Access denied for...
【原创】PostgreSQL 实现MySQL...
新做的mysql5.1中文手册...
mysql启动的四种方式
linux dhcp peizhi roc
关于Unix文件的软链接
求教这个命令什么意思,我是新...
sed -e "/grep/d" 是什么意思...
谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
在项目开发时,遇到该异常,通过搜索在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/
阅读(3761) | 评论(0) | 转发(0) |
1
上一篇:[Win7 x64]Eclipse Indigo 3.7 中文字体偏小解决方案: Consolas 微软雅黑混合字体!
下一篇:mysql解决自动断开8小时未曾用过的链接
相关热门文章
python 多进程之管道实例(模...
解决mysql“Access denied for...
【原创】PostgreSQL 实现MySQL...
新做的mysql5.1中文手册...
mysql启动的四种方式
linux dhcp peizhi roc
关于Unix文件的软链接
求教这个命令什么意思,我是新...
sed -e "/grep/d" 是什么意思...
谁能够帮我解决LINUX 2.6 10...
给主人留下些什么吧!~~
评论热议
相关文章推荐
- mysql解决自动断开8小时未曾用过的链接
- MAC 下配置MySQL
- 怎么跳出MySQL的10个大坑
- 【转】优化MySQL语句的十个建议
- 【转】优化MySQL语句的十个建议
- mysql update语句问题:You can't specify target table 'user' for update in FROM clause
- 解决mysql出现“the table is full”的问题
- 解决mysql出现“the table is full”的问题
- mysql update语句问题:You can't specify target table 'user' for update in FROM clause
- MySQL导库命令
- 【转】缩小mysql数据库的ibdata1文件
- MySQL导库命令
- 【转】缩小mysql数据库的ibdata1文件
- MySQL老旧版本下载地址
- 【转】MySQL忘记root密码
- 【转】MySQL忘记root密码
- MySQL老旧版本下载地址
- 【转】mysql负载均衡的配置过程
- 【转】MySQL负载均衡功能实现概要
- 【转】MySQL命令大全