首页 > 数据库> > 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!异常
作者:互联网
今天使用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。重新运行就可以了!
标签:5.1,java,database,acquired,jar,connector,underlying 来源: https://www.cnblogs.com/chenfengl/p/11077955.html