连接mysql报错——没有设置“usessl=false”的问题

报错信息

Wed Mar 13 17:08:37 CST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
 
1:admin

连接mysql报错——没有设置“usessl=false”的问题_第1张图片

解决办法            

在配置数据库的URL时,加上usessl=false就可以了。

添加前

连接mysql报错——没有设置“usessl=false”的问题_第2张图片

添加后

连接mysql报错——没有设置“usessl=false”的问题_第3张图片

连接mysql报错——没有设置“usessl=false”的问题_第4张图片

附上Configuration.xml代码



    
     
         
     
 
    
        
        
            
            
            
            
            
            
        
    
    
    
    
        
    

以上为个人经验,希望能给大家一个参考,也希望大家多多支持脚本之家。

你可能感兴趣的:(连接mysql报错——没有设置“usessl=false”的问题)