Connections could not be acquired from the underlying database!
来源:互联网 发布:三星清零软件 编辑:程序博客网 时间:2024/05/05 03:04
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at org.quartz.utils.PoolingConnectionProvider.getConnection(PoolingConnectionProvider.java:247)
at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:108)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:774)
... 23 more
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
at org.quartz.utils.PoolingConnectionProvider.getConnection(PoolingConnectionProvider.java:247)
at org.quartz.utils.DBConnectionManager.getConnection(DBConnectionManager.java:108)
at org.quartz.impl.jdbcjobstore.JobStoreSupport.getConnection(JobStoreSupport.java:774)
... 23 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not
以上问题可能有一下原因造成:
1,驱动配置有误:driver=com.mysql.jdbc.Driver
2,数据库连接地址有误:url=jdbc:mysql://localhost:3306/test?3useUnicode=true&characterEncoding=utf8
3,密码或帐号有误:username=root
password=root
4,数据库未启动或无权访问
5,项目未引入对应的驱动jar包mysql-connector-java-5.1.6-bin.jar
6,mysql root没有远程访问的权限,需要增加权限,增加权限的步骤如下:
进入mysql数据库:
grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
flush privileges;
0 0
- Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database
- Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- Connections could not be acquired from the underlying database
- Connections could not be acquired from the underlying database
- 解决:Connections could not be acquired from the underlying database!
- Connections could not be acquired from the underlying database
- 解决:Connections could not be acquired from the underlying database!
- Connections could not be acquired from the underlying database!
- 数据库Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- 解决:Connections could not be acquired from the underlying database!
- Connections could not be acquired from the underlying database问题解决
- sqlserver2005的配置。(Connections could not be acquired from the underlying database)
- Connections could not be acquired from the underlying database!原因及解决办法
- 第一篇博客
- 用Xcode6创建xib窗口
- epoll LT和ET区别
- Android 隐藏LinearLayout
- hdu4504基础dp,二维
- Connections could not be acquired from the underlying database!
- 落叶不懂的桑梓心
- 黑马程序员--集合框架和集合操作(List,Queue, Deque,Map)
- Oracle Decode()的使用
- 第十二章 动态内存
- cygwin下面编译proxmark3(at 2015.09.09)
- Hibernate基于Spring模板的DAO基类
- 欢迎使用CSDN-markdown编辑器
- JSON和Java实体之间的数据类型映射