Connections could not be acquired from the underlying database错误
查询几次后就出现这个问题了,我的配置文件为:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<!-- Generated by MyEclipse Hibernate Tools. -->
<hibernate-configuration>
<session-factory>
<property name="dialect">
org.hibernate.dialect.MySQLDialect
</property>
<property name="connection.url">
jdbc:mysql://localhost:3306/huyue
</property>
<property name="connection.username">root</property>
<property name="connection.password">admin</property>
<property name="connection.driver_class">
com.mysql.jdbc.Driver
</property>
<property name="myeclipse.connection.profile">HuYue</property>
<property name="hibernate.c3p0.min_size">8</property>
<property name="hibernate.c3p0.max_size">20</property>
<property name="hibernate.c3p0.timeout">120</property>
<property name="hibernate.c3p0.max_statements">100</property>
<property name="hibernate.c3p0.idle_test_period">120</property>
<property name="hibernate.c3p0.acquire_increment">2</property>
<property name="hibernate.c3p0.validate">true</property>
<mapping resource="Forms/Cars.hbm.xml" />
<mapping resource="Forms/Commits.hbm.xml" />
<mapping resource="Forms/Companys.hbm.xml" />
<mapping resource="Forms/Drivers.hbm.xml" />
<mapping resource="Forms/Guides.hbm.xml" />
<mapping resource="Forms/Lines.hbm.xml" />
<mapping resource="Forms/Roads.hbm.xml" />
<mapping resource="Forms/Salestations.hbm.xml" />
<mapping resource="Forms/Startgroup.hbm.xml" />
<mapping resource="Forms/Stations.hbm.xml" />
<mapping resource="Forms/Users.hbm.xml" />
</session-factory>
</hibernate-configuration>
要怎么解决啊,在线等了,高分。