Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect
Posted by: Karen Goh
Date: August 12, 2017 12:40AM

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 ?

Options: ReplyQuote


Subject
Written By
Posted
Caused by: org.hibernate.exception.JDBCConnectionException: Error calling Driver#connect
August 12, 2017 12:40AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.