Bonjour à tous,
J'ai un easy php qui tourne sur ma machine avec une base que j'ai appelée db.
Sous eclipse je me suis créé un petit projet ou je veux utiliser Hibernate avec cette base.
Impossible de le faire mapper!
Voila mon fichier "hibernate.cfg.xml" :
Lorsque j'essaie de créer mon fichier de mapping Hibernate il me sort une
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 <hibernate-configuration> <session-factory > <!-- local connection properties --> <property name="hibernate.connection.url">jdbc:mysql://localhost:2224/db</property> <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property> <property name="hibernate.connection.username">tch</property> <property name="hibernate.connection.password">tch</property> <!-- property name="hibernate.connection.pool_size"></property --> <!-- dialect for MySQL --> <property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property> <property name="hibernate.show_sql">false</property> <property name="hibernate.use_outer_join">true</property> <property name="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</property> <property name="jta.UserTransaction">java:comp/UserTransaction</property> </session-factory> </hibernate-configuration>
une java.net.SocketException avec une "Connection refused".
j'ai un utilisateur tch/tch que j'ai créé via phpMyAdmin et a qui j ai foutu tous les droits...
Une idée?
Partager