Mysql8.0异常:Public Key Retrieval is not allowed
在项目的JDBC连接数据库的url中,加上allowPublicKeyRetrieval=true参数,已验证可以解决该问题。
jdbc:mysql://localhost:3306/spring?characterEncoding=utf8&useSSL=false&serverTimezone=UTC&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号