无法创建PoolableConnectionFactory [英] Cannot create PoolableConnectionFactory
本文介绍了无法创建PoolableConnectionFactory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么问题?无法连接到数据库?
What is the problem? Can't connect to database?
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (
Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.)
推荐答案
这是真正的问题原因:
This is the actual cause of the problem:
导致:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
通信链接失败
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
你有一个数据库通信链接问题。确保您的应用程序可以访问数据库的网络(并且防火墙不阻止数据库的端口)。
You have a database communication link problem. Make sure that your application have network access to your database (and the firewall isn't blocking ports to your database).
这篇关于无法创建PoolableConnectionFactory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文