Debutant connection base mysql
Bonjour
J'essais de comprendre la configuration d'hibernate pour me connecter à une base mysql.
Ma base est hébergé chez free, j'ai suivi un tuto (http://cherkaoui.developpez.com/tuto...t_hibernate#L3) pour arriver a ce fichier de config :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <?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">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.password">xxxxxx</property>
<property name="hibernate.connection.url">jdbc:mysql://sql.free.fr/livres113</property>
<property name="hibernate.connection.username">livres113</property>
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
<property name="current_session_context_class">thread</property>
<property name="hibernate.show_sql">true</property>
</session-factory>
</hibernate-configuration> |
Sous eclipse je passe en vue hibernate configuration pour voir si il arrive a se connecté et en cliquant sur database je n'ai rien.
J'espere poster au bon endroit pour avoir un peu d'aide.