Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.0.5
[
Name and version of the database you are using:
MySQL 4.1.10a
Hi,
I'm trying to use the eclipse plugins to auto-generate my databases. I keep getting the following error:
org.hibernate.console.HibernateConsoleRuntimeException:Problems while loading database driverclass (com.jdbc.mysql.Driver)
It works fine with Hypersonic SQL. but fails with MySQL.
I have the mysql-connector-java-3.1.10-bin.jar in my project lib, but oddly it doesn't show up in the directory when I try to add the jar from within the console configuration wizard, yet the hsqldb.jar file is visible. When I add mysql-connector-java-3.1.10-bin.jar as an external JAR file that doesn't work either.
Here's my hibernate config file:
<?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.dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate</property>
<property name="hibernate.connection.driver_class">com.jdbc.mysql.Driver</property>
</session-factory>
</hibernate-configuration>
I'm totally perplexed since it works fine with hypersonic sql yet doesn't with mySQL. Thanks in advance for your help!