【 使用环境 】生产环境
【 OB or 其他组件 】OBCE
【 使用版本 】OBCE-4.2.1
【问题描述】使用 mysql 驱动 jdbc url ob库报错
【复现路径】问题出现前后相关操作
jdbc url :
jdbc-url: jdbc:mysql://XXXX.com:2883/mail_db?autoReconnect=true&allowPublicKeyRetrieval=true&useSSL=false&useUnicode=true&characterEncoding=utf8
日志:
2024-05-16 15:14:47.801 ERROR 1 — [nio-8087-exec-4] o.a.c.c.C.[.[.[.[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [/skype] threw exception [Request processing failed; nested exception is org.springfra
mework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.] with root cause
com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is not allowed