Kettle连接MySQL报错:错误连接数据库 [mysql] : org.pentaho.di.core.exception.KettleDatabaseException的解决办法

在Windows系统里面安装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



at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:520)
at org.pentaho.di.core.database.Database.normalConnect(Database.java:461)
… 45 more
Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:436)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
at org.pentaho.di.core.database.Database.connectUsingClass(Database.java:495)
… 46 more
Kettle连接MySQL报错:错误连接数据库 [mysql] : org.pentaho.di.core.exception.KettleDatabaseException的解决办法_第1张图片
我的mysql是5.7.29所以从这下载https://dev.mysql.com/downloads/connector/j/驱动,mysql-connector-java-5.1.48这个很稳定,亲测!!!
百度网盘自取:https://pan.baidu.com/s/1I9QyT4SFx7d1sc85xrPrFQ
提取码:80on
下载后将其解压放到kettle安装目录中的lib目录,然后重新启动kettle。问题搞定!!

你可能感兴趣的:(Kettle连接MySQL报错:错误连接数据库 [mysql] : org.pentaho.di.core.exception.KettleDatabaseException的解决办法)