jdbc 驱动程序“org.gjt.mm.mysql.Driver”是做什么用的?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5808160/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What is the jdbc driver "org.gjt.mm.mysql.Driver" for?
提问by benstpierre
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.
在接手同事的项目后,我注意到他使用“org.gjt.mm.mysql.Driver”作为 MySQL 5 的 jdbc 驱动程序,而不是更常见的“com.mysql.jdbc.Driver”。它们都包含在我在 Maven 中心找到的驱动程序中,该驱动程序似乎是驱动程序的标准发行版。
When I look up gjt.org I found some old site that talks about "Mark's mysql driver".
当我查找 gjt.org 时,我发现了一些谈论“Mark 的 mysql 驱动程序”的旧站点。
回答by BalusC
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.
MySQL JDBC 驱动程序最初是由一个爱好者开发的。它后来捐赠给 MySQL,他们在那里重命名了包/类名。保留旧的类名是出于向后兼容性的原因,但如果可以,您应该com.mysql.jdbc.Driver
尽快将其更新为。