What is the jdbc driver quot;org.gjt.mm.mysql.Driverquot; for?(jdbc驱动“org.gjt.mm.mysql.Driver是什么?为了?)
问题描述
在接手同事的项目后,我注意到他使用org.gjt.mm.mysql.Driver"作为 MySQL 5 的 jdbc 驱动程序,而不是更常见的com.mysql.jdbc.Driver".它们都包含在我在 Maven 中心找到的驱动程序中,该驱动程序似乎是驱动程序的标准发行版.
After taking over a coworker's project I noticed he was using "org.gjt.mm.mysql.Driver" as the jdbc driver for MySQL 5 instead of the more common one "com.mysql.jdbc.Driver". They both are contained in the driver I found on Maven central that appears to be the standard distribution of the driver.
当我查找 gjt.org 时,我发现了一些旧网站,上面提到了Mark 的 mysql 驱动程序".
When I look up gjt.org I found some old site that talks about "Mark's mysql driver".
http://gjt.org/
推荐答案
MySQL JDBC 驱动程序最初是由一个爱好者开发的.它后来捐赠给 MySQL,他们在那里重命名了包/类名.保留旧的类名是为了向后兼容,但如果可以,您应该尽快将其更新为 com.mysql.jdbc.Driver.
The MySQL JDBC driver was initially developed by a hobbyist. It's later donated to MySQL where they renamed the package/classname. The old classname is kept for backwards compatibility reasons, but if you can, you should update it to com.mysql.jdbc.Driver as soon as possible.
这篇关于jdbc驱动“org.gjt.mm.mysql.Driver"是什么?为了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:jdbc驱动“org.gjt.mm.mysql.Driver"是什么?为了?
基础教程推荐
- 无法解决整理冲突 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 是否可以执行按位分组功能? 2021-01-01
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- 在 SQL 中连接多个表 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
