Kettel连接SQL踩坑记录

这里踩坑记录

- 连接报错

错误信息:

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

根据报错信息可得:错误原因:未安装驱动程序,去官网下载安装
https://www.microsoft.com/zh-cn/download/confirmation.aspx?id=11774
下载安装后找到对应的驱动:
Kettel连接SQL踩坑记录
将这个驱动复制到kettel\bin目录下,重启

- 重启后依然报错,显示连接失败

Kettel连接SQL踩坑记录
百度了一下,发现是tcp协议禁用了
解决:
Kettel连接SQL踩坑记录
Kettel连接SQL踩坑记录
右键启用,然后打开属性,这里以IP10为例,将其设置为启用
Kettel连接SQL踩坑记录
重启服务,重启kettel
Kettel连接SQL踩坑记录
然后就可以连上了
Kettel连接SQL踩坑记录