gpt4 book ai didi

java - 无法创建 PoolableConnectionFactory

转载 作者:IT老高 更新时间:2023-10-28 20:45:59 26 4
gpt4 key购买 nike

有什么问题?无法连接数据库?

   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.)

最佳答案

这是问题的实际原因:

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

您有一个数据库通信链接问题。确保您的应用程序可以通过网络访问您的数据库(并且防火墙没有阻止您的数据库端口)。

关于java - 无法创建 PoolableConnectionFactory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5203696/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com