After having dowloaded hibernate :
3.0.5 I wanted to to run the examples using
MySql
Here is how I set my hibernate.properties file
Code:
hibernate.dialect org.hibernate.dialect.MySQLDialect
hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect
hibernate.dialect org.hibernate.dialect.MySQLMyISAMDialect
hibernate.connection.driver_class com.mysql.jdbc.Driver
hibernate.connection.url jdbc:mysql://localhost
hibernate.connection.username root
hibernate.connection.password *****
I place the JDBC driver in the lib directory.
Then I launch "ant eg" but the build failed, the first error message I got was this one
Code:
[java] 07:31:14,156 INFO DriverManagerConnectionProvider:80 - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost
[java] 07:31:14,156 INFO DriverManagerConnectionProvider:86 - connection properties: {user=root, password=****}
[java] 07:31:14,171 WARN SettingsFactory:103 - Could not obtain connection metadata
[java] java.sql.SQLException: No suitable driver
It's saying that
my driver is not suitable ... I always use this driver wich is the driver I download from MySql and evrything work fine usually.
I also change the class name for the driver to org.gjt.mm.mysql.Driver but the problem remains.
Any help would be appreciated.
Michael.