ltylty edited a comment on issue #1427: com.mysql.cj.jdbc.Driver驱动类连不上doris URL: https://github.com/apache/incubator-doris/issues/1427#issuecomment-508640890 @imay 有个bug,jdbc的url配置成 jdbc:mysql://{}:{}/{}?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8 会报错 Caused by: java.sql.SQLSyntaxErrorException: Unknown character set: 'utf8mb4' at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122) at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:835) at com.mysql.cj.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:455) at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:240) at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:199) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:247) at cn.hutool.db.ds.simple.SimpleDataSource.getConnection(SimpleDataSource.java:185) at cn.hutool.db.dialect.DriverUtil.identifyDriver(DriverUtil.java:50) ... 109 common frames omitted 配置成jdbc:mysql://{}:{}/{}?serverTimezone=GMT%2B8 可以正常连接。
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org