MySQL Connector/J有两个版本:
Connector/J 5.1是一个4类纯Java JDBC驱动程序,它符合JDBC 3.0、4.0、4.1和4.2规范。它提供了与MySQL所有功能的兼容性,包括5.6、5.7和8.0。连接器/J 5.1提供了易于开发的特性,包括向驱动程序管理器自动注册、标准化的有效性检查、分类的SQLExceptions、对大量更新计数的支持、对来自java.time
包、对JDBC-4.x XML处理的支持、对每个连接的客户端信息的支持以及对NCHAR,NVARCHAR和NCLOB
数据类型。
Connector/J 8.0是用于Java 8平台的第4类纯Java JDBC 4.2驱动程序。它提供了与MySQL 5.6、5.7和8.0所有功能的兼容性。
下面是mysql jdbc驱动版本与mysql数据库版本的对应关系,按照以下关系,选择相应的jdbc驱动和mysql数据版本。
Connector/J 5.1 支持Mysql 4.1、Mysql 5.0、Mysql 5.1、Mysql 6.0 alpha这些版本。
Connector/J 5.0 支持MySQL 4.1、MySQL 5.0 servers、distributed transaction (XA)。
Connector/J 3.1 支持MySQL 4.1、MySQL 5.0 servers、MySQL 5.0 except distributed transaction (XA) support。
Connector/J 3.0 支持MySQL 3.x or MySQL 4.1。
以下是Connector/J 8.0的一些兼容性信息:
JDBC版本:连接器/J 8.0实现了JDBC 4.2。尽管Connector/J 8.0支持更高JDBC版本的库,但它返回一个SQLFeatureNotSupportedException
对于仅由JDBC 4.3和更高版本支持的方法的任何调用。
MySQL服务器版本:Connector/J 8.0支持MySQL 5.7和8.0。
JRE版本:Connector/J 8.0支持JRE 8或更高版本。
Connector/J
JDBC版本
MySQL服务器版本
需要JRE
编译需要JDK
状态
5.1
3.0, 4.0, 4.1, 4.2
5.61, 5.71, 8.01
JRE 5或更高1
JDK 5.0和JDK 8.0或更高版本2, 3
一般利用率
8.0
4.2
5.6, 5.7, 8.0
JRE 8或更高
JDK 8.0或更高版本2
全面上市。推荐版本。
注意:
强烈推荐MySQL Connector/J 8.0与MySQL Server 8.0、5.7和5.6一起使用。请升级到MySQLConnector/J 8.0。
下面是jar包下载地址:
版本号
下载地址
2.0.14
mysql-connector-java-2.0.14.jar
https://www.aliyundrive.com/s/ZdffCzJeFSB
3.0.10
mysql-connector-java-3.0.10.jar
https://www.aliyundrive.com/s/NW6BbTFpNJz
3.0.8
mysql-connector-java-3.0.8.jar
https://www.aliyundrive.com/s/W5FBTd6sjZX
3.1.11
mysql-connector-java-3.1.11.jar
https://www.aliyundrive.com/s/v7g85wLa1Md
3.1.12
mysql-connector-java-3.1.12.jar
https://www.aliyundrive.com/s/8bRzzjPtBnq
3.1.13
mysql-connector-java-3.1.13.jar
https://www.aliyundrive.com/s/XfhGZ4jaYBs
3.1.14
mysql-connector-java-3.1.14.jar
https://www.aliyundrive.com/s/kQ687ySTQ6X
5.0.2
mysql-connector-java-5.0.2.jar
https://www.aliyundrive.com/s/AE4xb6HocgZ
5.0.3
mysql-connector-java-5.0.3.jar
https://www.aliyundrive.com/s/zEbJN8KgyjM
5.0.4
mysql-connector-java-5.0.4.jar
https://www.aliyundrive.com/s/b2XQJruSJez
5.0.5
mysql-connector-java-5.0.5.jar
https://www.aliyundrive.com/s/6so4JW3sakt
5.0.7
mysql-connector-java-5.0.7.jar
https://www.aliyundrive.com/s/bJ8zfJzBKam
5.0.8
mysql-connector-java-5.0.8.jar
https://www.aliyundrive.com/s/qGzV9D8Cw57
5.1.1
mysql-connector-java-5.1.1.jar
https://www.aliyundrive.com/s/6z5r1CgiJKK
5.1.10
mysql-connector-java-5.1.10.jar
https://www.aliyundrive.com/s/DgiPSfeBdJ7
5.1.11
mysql-connector-java-5.1.11.jar
https://www.aliyundrive.com/s/shwznydnB9i
5.1.12
mysql-connector-java-5.1.12.jar
https://www.aliyundrive.com/s/jiceqQFDe5e
5.1.13
mysql-connector-java-5.1.13.jar
https://www.aliyundrive.com/s/3PHBHWy2kHh
5.1.14
mysql-connector-java-5.1.14.jar
https://www.aliyundrive.com/s/fpKhxHsN3AM
5.1.15
mysql-connector-java-5.1.15.jar
https://www.aliyundrive.com/s/qw8zzHNtHHK
5.1.16
mysql-connector-java-5.1.16.jar
https://www.aliyundrive.com/s/c8LsBVhQaWF
5.1.17
mysql-connector-java-5.1.17.jar
https://www.aliyundrive.com/s/3hecyWJLpFs
5.1.18
mysql-connector-java-5.1.18.jar
https://www.aliyundrive.com/s/bGoyd1WPeyj
5.1.19
mysql-connector-java-5.1.19.jar
https://www.aliyundrive.com/s/Jb8e99PJRGP
5.1.2
mysql-connector-java-5.1.2.jar
https://www.aliyundrive.com/s/mq5VN1tz2oV
5.1.20
mysql-connector-java-5.1.20.jar
https://www.aliyundrive.com/s/JhPKwzAwK6t
5.1.21
mysql-connector-java-5.1.21.jar
https://www.aliyundrive.com/s/ERdtSwkimJR
5.1.22
mysql-connector-java-5.1.22.jar
https://www.aliyundrive.com/s/FGk4A2yoX3L
5.1.23
mysql-connector-java-5.1.23.jar
https://www.aliyundrive.com/s/MQ1g8q5NmY1
5.1.24
mysql-connector-java-5.1.24.jar
https://www.aliyundrive.com/s/JKUuZwztRca
5.1.25
mysql-connector-java-5.1.25.jar
https://www.aliyundrive.com/s/k8SJAApyY9n
5.1.26
mysql-connector-java-5.1.26.jar
https://www.aliyundrive.com/s/Ry6n4nHDGcc
5.1.27
mysql-connector-java-5.1.27.jar
https://www.aliyundrive.com/s/Pbxh8Y5kCee
5.1.28
mysql-connector-java-5.1.28.jar
https://www.aliyundrive.com/s/9A4TBWVZHgJ
5.1.29
mysql-connector-java-5.1.29.jar
https://www.aliyundrive.com/s/WL9ZKaaNb4L
5.1.3
mysql-connector-java-5.1.3.jar
https://www.aliyundrive.com/s/KaEsCbcPAps
5.1.30
mysql-connector-java-5.1.30.jar
https://www.aliyundrive.com/s/o1UvivuFGyA
5.1.31
mysql-connector-java-5.1.31.jar
https://www.aliyundrive.com/s/CRrArwHsxPY
5.1.32
mysql-connector-java-5.1.32.jar
https://www.aliyundrive.com/s/rGqy3GGKLZR
5.1.33
mysql-connector-java-5.1.33.jar
https://www.aliyundrive.com/s/BL4d6CNhqpW
5.1.34
mysql-connector-java-5.1.34.jar
https://www.aliyundrive.com/s/6SXUEPF1rzN
5.1.35
mysql-connector-java-5.1.35.jar
https://www.aliyundrive.com/s/EqstNqCeBst
5.1.36
mysql-connector-java-5.1.36.jar
https://www.aliyundrive.com/s/iw992GMeXUc
5.1.37
mysql-connector-java-5.1.37.jar
https://www.aliyundrive.com/s/82LZodNi5k8
5.1.38
mysql-connector-java-5.1.38.jar
https://www.aliyundrive.com/s/RpqGGnbzrsa
5.1.39
mysql-connector-java-5.1.39.jar
https://www.aliyundrive.com/s/uaZgheqtgcZ
5.1.4
mysql-connector-java-5.1.4.jar
https://www.aliyundrive.com/s/zNfpctsKUd4
5.1.40
mysql-connector-java-5.1.40.jar
https://www.aliyundrive.com/s/whEbGS98jJS
5.1.41
mysql-connector-java-5.1.41.jar
https://www.aliyundrive.com/s/bCu3ipUupBP
5.1.42
mysql-connector-java-5.1.42.jar
https://www.aliyundrive.com/s/2RZ9hGkAgkc
5.1.43
mysql-connector-java-5.1.43.jar
https://www.aliyundrive.com/s/QMwkfG6DmWC
5.1.44
mysql-connector-java-5.1.44.jar
https://www.aliyundrive.com/s/6Hc61VDNEB9
5.1.45
mysql-connector-java-5.1.45.jar
https://www.aliyundrive.com/s/hRWnziGbJzJ
5.1.46
mysql-connector-java-5.1.46.jar
https://www.aliyundrive.com/s/CiRkkLU1fbm
5.1.47
mysql-connector-java-5.1.47.jar
https://www.aliyundrive.com/s/gzFxPyZj7Kd
5.1.48
mysql-connector-java-5.1.48.jar
https://www.aliyundrive.com/s/rri7wvPtdt2
5.1.49
mysql-connector-java-5.1.49.jar
https://www.aliyundrive.com/s/k3LiEz9uK8b
5.1.5
mysql-connector-java-5.1.5.jar
https://www.aliyundrive.com/s/ZQFZxKshogY
5.1.6
mysql-connector-java-5.1.6.jar
https://www.aliyundrive.com/s/P4Bi9pTBdHV
5.1.8
mysql-connector-java-5.1.8.jar
https://www.aliyundrive.com/s/zYQxZZXMTih
5.1.9
mysql-connector-java-5.1.9.jar
https://www.aliyundrive.com/s/U7WK1o2B7iu
6.0.2
mysql-connector-java-6.0.2.jar
https://www.aliyundrive.com/s/mRq8wNwRueA
6.0.3
mysql-connector-java-6.0.3.jar
https://www.aliyundrive.com/s/YSzYc8YC9Ya
6.0.4
mysql-connector-java-6.0.4.jar
https://www.aliyundrive.com/s/qLP5dmA2gVU
6.0.5
mysql-connector-java-6.0.5.jar
https://www.aliyundrive.com/s/rD332fd7KPi
6.0.6
mysql-connector-java-6.0.6.jar
https://www.aliyundrive.com/s/c8wmCYFsNUg
8.0.11
mysql-connector-java-8.0.11.jar
https://www.aliyundrive.com/s/ktJqbDrUYTn
8.0.12
mysql-connector-java-8.0.12.jar
https://www.aliyundrive.com/s/NPFKK56SmUb
8.0.13
mysql-connector-java-8.0.13.jar
https://www.aliyundrive.com/s/JnHLLr2Fx1G
8.0.14
mysql-connector-java-8.0.14.jar
https://www.aliyundrive.com/s/nQmy2KGvXgb
8.0.15
mysql-connector-java-8.0.15.jar
https://www.aliyundrive.com/s/1VqKZE1qHZA
8.0.16
mysql-connector-java-8.0.16.jar
https://www.aliyundrive.com/s/N4cKYfxZR3i
8.0.17
mysql-connector-java-8.0.17.jar
https://www.aliyundrive.com/s/YTTR5tr5GZe
8.0.18
mysql-connector-java-8.0.18.jar
https://www.aliyundrive.com/s/Yme8dn7aA9u
8.0.19
mysql-connector-java-8.0.19.jar
https://www.aliyundrive.com/s/wBeBeEAh6pu
8.0.20
mysql-connector-java-8.0.20.jar
https://www.aliyundrive.com/s/CfgZ7Xj5tby
8.0.21
mysql-connector-java-8.0.21.jar
https://www.aliyundrive.com/s/6WYifhAnb6J
8.0.22
mysql-connector-java-8.0.22.jar
https://www.aliyundrive.com/s/ZQYmWBEw6uP
8.0.23
mysql-connector-java-8.0.23.jar
https://www.aliyundrive.com/s/HE4NY1d8yC1
8.0.24
mysql-connector-java-8.0.24.jar
https://www.aliyundrive.com/s/oqosLGBqG9B
8.0.25
mysql-connector-java-8.0.25.jar
https://www.aliyundrive.com/s/X9awr9ek61x
8.0.26
mysql-connector-java-8.0.26.jar
https://www.aliyundrive.com/s/JXUrEEVLzKn
8.0.27
mysql-connector-java-8.0.27.jar
https://www.aliyundrive.com/s/6iUuXfS5MFj
8.0.28
mysql-connector-java-8.0.28.jar
https://www.aliyundrive.com/s/8NTTmv7dCbQ