i am using MySQL workbench 5.2 CE database with a basic hibernate program at run time it give me error:
Caused by: org.hibernate.HibernateException: JDBC Driver class not found: com.mysql.jdbc.Driver
this code in hibernate.cfg.xml:
<hibernate-configuration>
<session-factory>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.url">jdbc:mysql://192.168.8.212/da?autoReconnect=true&useOldUTF8Behavior=true&useUnicode=true&characterEncoding=UTF-8" /></property>
<property name="connection.username">root</property>
<property name="connection.password">password</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="myeclipse.connection.profile">MyEclipse Derby</property>
</session-factory>
</hibernate-configuration>