[manager,home,collector]feature:支持mariadb监控类型 (#11)

This commit is contained in:
tomsun28
2022-03-05 21:30:31 +08:00
committed by GitHub
parent cf79f5ec63
commit 0a3b077172
6 changed files with 234 additions and 2 deletions

View File

@@ -248,6 +248,7 @@ public class JdbcCommonCollect extends AbstractCollect {
String url;
switch (jdbcProtocol.getPlatform()) {
case "mysql":
case "mariadb":
url = "jdbc:mysql://" + jdbcProtocol.getHost() + ":" + jdbcProtocol.getPort()
+ "/" + (jdbcProtocol.getDatabase() == null ? "" : jdbcProtocol.getDatabase())
+ "?useUnicode=true&characterEncoding=utf-8&useSSL=false";