jdbc驱动“org.gjt.mm.mysql.Driver"是什么?为了?

What is the jdbc driver quot;org.gjt.mm.mysql.Driverquot; for?(jdbc驱动“org.gjt.mm.mysql.Driver是什么?为了?)
本文介绍了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"是什么?为了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Hibernate reactive No Vert.x context active in aws rds(AWS RDS中的休眠反应性非Vert.x上下文处于活动状态)
Bulk insert with mysql2 and NodeJs throws 500(使用mysql2和NodeJS的大容量插入抛出500)
Flask + PyMySQL giving error no attribute #39;settimeout#39;(FlASK+PyMySQL给出错误,没有属性#39;setTimeout#39;)
auto_increment column for a group of rows?(一组行的AUTO_INCREMENT列?)
Sort by ID DESC(按ID代码排序)
SQL/MySQL: split a quantity value into multiple rows by date(SQL/MySQL:按日期将数量值拆分为多行)