Kettle 连接Mysql数据库报错

新安装了Kettle 6.1,安装文件为 pdi-ce-6.1.0.1-196.zip 。

连接Mysql数据,输入IP地址  数据库名称 用户名 密码,报错!如下:

错误信息:

错误连接数据库 [tcc] : 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

at org.pentaho.di.core.database.Database.normalConnect(Database.Java:428)
at org.pentaho.di.core.database.Database.connect(Database.java:358)
at org.pentaho.di.core.database.Database.connect(Database.java:311)
at org.pentaho.di.core.database.Database.connect(Database.java:301)
at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:80)
at org.pentaho.di.core.database.DatabaseMeta.testConnection(DatabaseMeta.java:2686)

.....................


 发现,其实在报Mysql驱动没有找到!


所以,我们就去Mysql官网 https://dev.mysql.com/downloads/connector/j/  下载 mysql-connector-java-5.1.44.zip,解压得到 mysql-connector-java-5.1.44-bin.jar 

并将mysql-connector-java-5.1.44-bin.jar 复制到kettle 安装目录 (即Spoon.bat存在的路径)D:\software\6.1\pdi-ce-6.1.0.1-196\data-integration下面。

再重启Kettle,就OK了!


你可能感兴趣的:(Kettle 连接Mysql数据库报错)