Kettle連接Mysql提示連接驅動未找到

報錯信息如下:

錯誤連接數據庫 [{mysql連接名稱}] : org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database

Driver class ‘org.gjt.mm.mysql.Driver‘ could not be found, make sure the ‘MySQL‘ driver (jar file) is installed.
org.gjt.mm.mysql.Driver


org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database

Driver class ‘org.gjt.mm.mysql.Driver‘ could not be found, make sure the ‘MySQL‘ driver (jar file) is installed.
org.gjt.mm.mysql.Driver

很明顯,是因爲沒有找到mysql連接驅動jar包。

解決方法:

第一步,下載mysql連接驅動

https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.48.zip

(若有新版本發佈,只需將鏈接中的版本號修改爲最新的版本即可)

第二步,解壓上一步下載的壓縮包,將mysql-connector-java-5.1.48-bin.jar複製到Kettle安裝目錄下,即\pdi-ce-xxxxxxx\data-integration\lib目錄下。

第三步,重啓Spoon.bat,問題解決。若不重啓Spoon.bat,仍會報錯。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章