9. 成功解决:Driver class 'org.gjt.mm.mysql.Driver' could not be found

本文涉及的产品
RDS MySQL Serverless 基础系列,0.5-2RCU 50GB
云数据库 RDS MySQL,集群系列 2核4GB
推荐场景:
搭建个人博客
云数据库 RDS MySQL,高可用系列 2核4GB
简介: 在使用 Kettle(Spoon) 工具创建 MySQL 数据库连接时,提示: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

0d8c4b6e86341d71bb0b50c998a79aee_image_auth_key=1686703976-oaCuGiKyKf4M7ZnffwRLVd-0-5fe0d9f5c54c3a0a8dcae6bbb0c3e036&file_size=332738.png

❤️ 个人主页: 水滴技术
🌸 订阅专栏: 成功解决 BUG 合集
🚀 支持水滴: 点赞👍 + 收藏⭐ + 留言💬

问题描述

在使用 Kettle(Spoon) 工具创建 MySQL 数据库连接时,提示:

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

430360122356bf2c98d3b32b1def4bfa_image_auth_key=1686703989-eRD6iw8ZPDd1AACVTnNu87-0-3625ca0fa55d4d082c0fc8c222bb1113&file_size=13349.png

该提示的意思是缺少 MySQL 相关的 JDBC 驱动。

原因分析

Kettle 并工具并没有为所有的数据库提供 JDBC 驱动,需要自行下载,然后放到 lib 目录中。

解决方案

从 MySQL 官网下载驱动包,步骤如下:

第一步:下载驱动

从 MySQL 官网找到 JDBC 驱动的 下载页,然后选择需要的版本,并选择“Platform Independent”,后面下载“ZIP”包后面的“Download”。

f7be076296535a423312d7a52a8d00ce_image_auth_key=1686704009-fF3rHMyVHSZUWVPpGNVZxg-0-e2ca66543416e2c031456d24ef7dc187&file_size=84010.png

第二步:解压,并放入 lib 目录

打开压缩包,里面的 .jar文件就是我们需要的驱动包

380ef11806d09ffecc8808dba2243a8d_image_auth_key=1686704062-oFkwDqUCXDvwxSzSeVpcQ1-0-d537d9cb2da3e42c1b4d6b4e001df198&file_size=56666.png

将其解压并拷贝到 Kettle 的 lib 目录,我最终使用的是 5.1.49版本

11bcdf5559545ec8af5c79e796eb6005_image_auth_key=1686704074-oSKu9M9TiTn8nJVTkd9V96-0-6ef7e25b5ae4b60971f974ae26167233&file_size=91824.png

第三步:重启 Kettle

重启 Kettle 后,即可正常创建数据库连接了。

9d95c2baf2f03cc6cfcb277ba0bd802f_image_auth_key=1686704086-G41ndwRqx5HFWsDNTcfqJ-0-511cc43b91bc3d033c6652c05b20ef93&file_size=10977.png


热门专栏

👍 《Java 教程:从入门到精通

👍 《MySQL 教程:从入门到精通

相关实践学习
如何在云端创建MySQL数据库
开始实验后,系统会自动创建一台自建MySQL的 源数据库 ECS 实例和一台 目标数据库 RDS。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
相关文章
|
3月前
|
关系型数据库 MySQL Linux
Qt连接Mysql出现问题(一):“Driver not loaded Driver not loaded“
第一眼看见这张图我也觉得很奇怪,显示有QMYSQL但是又说没有,这不自相矛盾吗!
476 4
|
12月前
|
Java 关系型数据库 MySQL
create connection error, url: jdbc:mysql://localhost:3306/ssm, errorCode 1045, state 28000 java.sql.
create connection error, url: jdbc:mysql://localhost:3306/ssm, errorCode 1045, state 28000 java.sql.
145 0
|
5月前
|
Java 数据库
SpringBoot出现com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime va
SpringBoot出现com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect datetime va
91 0
|
关系型数据库 MySQL
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class
278 0
|
SQL 安全 Java
6. 成功解决:Driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' could not be found, make sure the 'MS SQL Server (Native)' driver (jar file) is installed.
在使用 Kettle(Spoon) 工具创建 SQL Server 数据库连接时,提示:Driver class 'com.microsoft.sqlserver.jdbc.SQLServerDriver' could not be found, make sure the 'MS SQL Server (Native)' driver (jar file) is installed. com.microsoft.sqlserver.jdbc.SQLServerDriver
1434 1
|
Java 关系型数据库 MySQL
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
145 0
|
关系型数据库 MySQL 数据库
快速解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.c
我们当前使用的数据库版本在6.0以上,原来的驱动(com.mysql.jdbc.Driver)已经被废弃了,要进行更换驱动就好了
32633 1
快速解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.c
|
关系型数据库 MySQL
Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
Loading class com.mysql.jdbc.Driver'. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.异常错误问题及解决方法。
|
SQL 分布式计算 关系型数据库
【报错解决】The specified datastore driver (“com.mysql.jdbc.Driver “) was not found in the CLASSPATH. Plea
【报错解决】The specified datastore driver (“com.mysql.jdbc.Driver “) was not found in the CLASSPATH. Plea
570 0
|
Java 关系型数据库 MySQL
Could not load JDBC driver class [com.mysql.jdbc.Driver]
Could not load JDBC driver class [com.mysql.jdbc.Driver]
Could not load JDBC driver class [com.mysql.jdbc.Driver]
下一篇
无影云桌面