成功解决:Driver class ‘net.sourceforge.jtds.jdbc.Driver’ could not be found, make sure the ‘MS SQL Server’ driver (jar file) is installed.
前言
本文已收录于:《告别Bug》专栏
本专栏用于记录学习和工作中遇到的各种疑难Bug问题及解决思路+解决方法,包括程序安装、运行程序过程中的问题等等,订阅专栏后如遇到其他问题可私聊帮忙解决!!!
错误连接数据库 : org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Driver class ‘net.sourceforge.jtds.jdbc.Driver’ could not be found, make sure the ‘MS SQL Server’ driver (jar file) is installed.
net.sourceforge.jtds.jdbc.Driver
org.pentaho.di.core.exception.KettleDatabaseException:
Error occurred while trying to connect to the database
Driver class ‘net.sourceforge.jtds.jdbc.Driver’ could not be found, make sure the ‘MS SQL Server’ driver (jar file) is installed.
net.sourceforge.jtds.jdbc.Driver
缺少JTDS的jar包,找不到“驱动程序”,请确保安装了“MS SQL Server”驱动程序(jar文件)。
说明: JTDS,是一个开源的纯Java实现的JDBC3.0驱动,用于链接Mssql。
解决方法:将对应版本的数据库连接驱动放到kettle 安装目录下面的lib文件夹下,然后重启kettle 的客户端Spoon
SqlServer驱动下载地址:https://sourceforge.net/projects/jtds/
MySQL驱动下载地址:https://dev.mysql.com/downloads/connector/j/
注意:一定要下对应数据库版本的驱动
步骤: