"cannot open connection" Exception
Bonjour à tous!
Alors voila, j'utilise Hibernate pour la gestion de ma base de données. Le problème c'est que Hibernate n'arrive pas à ouvrir la connexion avec la bdd. Voiçi mon fichier Hibernate.cfg.xml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| <hibernate-configuration>
<session-factory>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:3306/basedouane</property>
<property name="connection.username"></property>
<property name="connection.password"></property>
<!-- JDBC connection pool (use the built-in) -->
<property name="connection.pool_size">1</property>
<!-- SQL dialect -->
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<!-- Enable Hibernate's automatic session context management -->
<property name="current_session_context_class">thread</property>
<!-- Disable the second-level cache -->
<property name="cache.provider_class">org.hibernate.cache.NoCacheProvider</property>
<!-- Echo all executed SQL to stdout -->
<property name="show_sql">true</property>
<property name="hbm2ddl.auto">create</property>
<mapping resource="com/douane/Class/Site.hbm.xml"/>
<mapping resource="com/douane/Class/TestPingResult.hbm.xml"/>
</session-factory>
</hibernate-configuration> |
Est ce que quelqu'un voit d'ou est ce que ça peut provenir.
Merçi