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
AI 代码解读

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 教程:从入门到精通

相关实践学习
如何快速连接云数据库RDS MySQL
本场景介绍如何通过阿里云数据管理服务DMS快速连接云数据库RDS MySQL,然后进行数据表的CRUD操作。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助     相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
打赏
0
0
0
0
27
分享
相关文章
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
416 0
【报错解决】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
643 0
快速解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.c
我们当前使用的数据库版本在6.0以上,原来的驱动(com.mysql.jdbc.Driver)已经被废弃了,要进行更换驱动就好了
33897 1
快速解决:Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.c
Cannot load driver class: com.mysql.jdbc.Driver
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Helvetica Neue'; color: #454545} Cannot load driver class: com.mysql.jdbc.Driver 看到类似的错误应该想到缺少Jar包引用。
2004 0
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
1746 1
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.异常错误问题及解决方法。
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
175 0
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException Table 'xinghe.base_class' doesn't exist
版权声明:本文为 testcs_dn(微wx笑) 原创文章,非商用自由转载-保持署名-注明出处,谢谢。 https://blog.csdn.net/testcs_dn/article/details/41650303 com.
1825 0
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException Table 'xinghe.base_class' doesn't exist
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException Table 'xinghe.base_class' doesn't exist HTTP Status 500 - Request processing failed; nested exception is org.
1805 0

推荐镜像

更多
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等