C3P0数据库连接错误:java.sql.SQLException: Connections could not be acquired from the underlying database!异常解决办法

今天使用C3P0数据源的时候,一直抛出异常:java.sql.SQLException: Connections could not be acquired from the underlying database!

最后终于找到解决办法:MySQL版本不合适,只需要换一个jar包就可以了

我原来使用的是mysql-connector-java-5.1.6-bin.jar,然后将jar包换成mysql-connector-java-5.1.44-bin.jar。重新运行就可以了!

posted @ 2019-06-24 16:43  辰凩風  阅读(1936)  评论(0编辑  收藏  举报