What is the jdbc driver “org.gjt.mm.mysql.Driver” for?

前端 未结 1 513
猫巷女王i
猫巷女王i 2020-12-01 18:23

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.Dri

相关标签:
1条回答
  • 2020-12-01 18:42

    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.

    0 讨论(0)
提交回复
热议问题