什么是jdbc驱动程序"org.gjt.mm.mysql.Driver"?为了? [英] What is the jdbc driver "org.gjt.mm.mysql.Driver" for?
问题描述
接管一个同事的项目后,我注意到他正在使用"org.gjt.mm.mysql.Driver"作为MySQL 5的jdbc驱动程序,而不是更常见的"com.mysql.jdbc.Driver".它们都包含在我在Maven Central上发现的驱动程序中,该驱动程序似乎是该驱动程序的标准发行版.
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".
推荐答案
MySQL JDBC驱动程序最初是由业余爱好者开发的.后来将其捐赠给MySQL,他们在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"?为了?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!