解决MySQL连接超时Communications link failure due to underlying exception
2013-03-05 12:59
696 查看
com.mysql.jdbc.CommunicationsException
MESSAGE: Communications link failure due to underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: Software caused connection abort: socket write error
解决方式:编辑/etc/mysqlmy.cnf(windows下为my.ini),将超时时间设置为10年,在[mysqld]后面加入:
wait_timeout=315360000
interactive_timeout=315360000
两句话都要写
然后重启MySQL
# service mysql restart
相关文章推荐
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决MySQL连接超时Communications link failure due to underlying exception
- 解决mysql连接异常—-com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception
- 解决mysql连接异常—-com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception
- com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:的解决
- Cause: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying...的解决
- 解决“连接数据库是老是报Communications link failure due to underlying exception”
- com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception:的解决
- Cause: com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying...的解决
- 如何解决com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception
- com.mysql.jdbc.CommunicationsException: Communications link failure due to underlying exception: (转载:http://www.javaeye.com/topic/38506)
- Mysql报错!Communications link failure due to underlying exception