2012-11-15 30 views
1

我的配置文件如下:錯誤在休眠控制檯配置加載數據庫驅動程序

<?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.connection.driver_class">org.gjt.mm.mysql.Driver</property> 
    <property name="hibernate.connection.password">root$12</property> 
    <property name="hibernate.connection.url">jdbc:mysql://localhost/mysql</property> 
    <property name="hibernate.connection.username">root</property> 
    <property name="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</property> 
    <mapping resource="com.sst.Course.hbm.xml"/> 
    </session-factory> 
    </hibernate-configuration> 

我正在裝載數據庫驅動程序的錯誤創造控制檯配置的時間。

+0

你可以發表你的錯誤? – nDijax

+0

在控制檯配置窗口我的錯誤顯示是這樣的:加載數據庫驅動類(org.gjt.mm.mysql.Driver)時出現問題 – venkyMCA

回答

0

嘗試com.mysql.jdbc.Driver

而在你的控制檯配置驗證數據庫連接來代替(驅動器,罐,...)

+0

Intially i used this url after that i change – venkyMCA

+0

你有同樣的錯誤嗎? – nDijax

相關問題