2013-08-07 99 views
0

對於數據導入處理我提出他MySQL和PostgreSQL jar文件Solr的LIB目錄(/ opt/Solr的/ lib目錄)。Solr的數據導入配置的JDBC

我的問題是在數據-config.xml中我已經放了兩個數據源,但是,我堅持上放什麼驅動程序值和網址。

<dataSource name="mysql" driver="<driver>" url="<url>" user="<user>" password="<pass>" /> 
<dataSource name="postgresql" driver="<driver>" url="<url>" user="<user>" password="pass>"/> 

是否有人能夠告訴我的帽子我應該爲這些價值觀?

回答

2

MySQL的
驅動器 - com.mysql.jdbc.Driver
網址 - jdbc:mysql://localhost/dbname

PostgreSQL的
驅動器 - org.postgresql.Driver
網址 - jdbc:postgresql://localhost:5432/xxxxx

+0

非常感謝你 – Jimmy