ssh配置mysql.properties_SSH中数据库连接问题。我用的是oracle。项目中.properties文件也配的没问题。怎么提示MySQL之类的错误?...

这篇博客记录了一次在尝试建立数据库连接时遇到的问题,详细日志显示为'Communication link failure',并提示最后发送到服务器的数据包是0毫秒前的。错误还涉及到Java的数据库连接池和MySQL的连接拒绝,可能是由于网络连接或服务器配置问题导致。
摘要由CSDN通过智能技术生成

{ERROR}[2013-11-1011:55:36,859]:CannotcreatePoolableConnectionFactory(CommunicationslinkfailureLastpacketsenttotheserverwas0msag...

{ERROR} [2013-11-10 11:55:36,859] : Cannot create PoolableConnectionFactory (Communications link failure

Last packet sent to the server was 0 ms ago.)

{ERROR} [2013-11-10 11:55:36,859] : could not get database metadata

org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Communications link failure

Last packet sent to the server was 0 ms ago.)

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 0 ms ago.

... 103 more

Caused by: java.net.ConnectException: Connection refused: connect

at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2026)

... 116 more

{ERROR} [2013-11-10 11:55:36,859] : could not complete schema update

Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Caused by: java.net.ConnectException: Connection refused: connect

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值