61 java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required

Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.

Thu Jan 16 08:05:35 CST 2020
There was an unexpected error (type=Internal Server Error, status=500).
nested exception is org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required ### The error may exist in file [E:\works\boot\sy\esaycode\target\classes\mapper\UserDao.xml] ### The error may involve com.taotao.esaycode.dao.UserDao.queryById ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required

java.sql.SQLNonTransientConnectionException:需要客户端插件身份验证

原因分析:
将mysql-connector-java由5.1.34升级到了6.0.6,本机MySQL5.7使用没问题,连测试服务器MySQL5.5创建数据库连接报错
解决方案:
将mysql-connector-java的版本退回到5.1.34。


    
            mysql
            mysql-connector-java
            6.0.6
        


            mysql
            mysql-connector-java
            5.1.34
        




你可能感兴趣的:(61 java.sql.SQLNonTransientConnectionException: CLIENT_PLUGIN_AUTH is required)