连接数据库失败
JasonWong-China opened this issue · comments
Caused by: com.mysql.cj.exceptions.UnableToConnectException: Public Key Retrieval is not allowed
Caused by: java.sql.SQLNonTransientConnectionException: Could not create connection to database server.
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server.
连接池参数发一下,推荐用mysql5.7以上