mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add mysql-driver 6.0.x support
This commit is contained in:
@@ -45,6 +45,10 @@ public class MySqlValidConnectionChecker extends ValidConnectionCheckerAdapter i
|
||||
public MySqlValidConnectionChecker(){
|
||||
try {
|
||||
clazz = Utils.loadClass("com.mysql.jdbc.MySQLConnection");
|
||||
if (clazz == null) {
|
||||
clazz = Utils.loadClass("com.mysql.cj.jdbc.ConnectionImpl");
|
||||
}
|
||||
|
||||
if (clazz != null) {
|
||||
ping = clazz.getMethod("pingInternal", boolean.class, int.class);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user