Dette kan hjælpe dig
Tilføj også brugernavn og adgangskode
<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/sampleDB</property>
<property name="hibernate.connection.username">yourUserNameForMysql</property>
<property name="hibernate.connection.password">passwordForMySql</property>
Efter Mysql 5.x skal du bruge org.hibernate.dialect.MySQL5Dialect-klassen
<property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost:3306/sampleDB</property>
<property name="hibernate.connection.username">yourUserNameForMysql</property>
<property name="hibernate.connection.password">passwordForMySql</property>