Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect
hi expert,
I have been having trouble in this hibernate connection to MySQL database but I can't figure out what cause the error.
Hope someone can advise me.
Tks.
Here's my hibernate.cfg.xml :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "
http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.show_sql">true</property>
<property name="hibernate.format_sql">true</property>
<property name="use_sql_comments">false</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="connection.url">jdbc:mysql://localhost:8013/abc"</property>
<property name="connection.username">root</property>
<property name="connection.password">root/</property>
<!-- add classes to map from here -->
<mapping class="model.Tutor" />
<mapping class="model.Subject" />
</session-factory>
</hibernate-configuration>
My j connector is in the build path.
So, why is it that it is not connecting ?