連接MySQL,eclipse運行以后出現(xiàn)這個怎么解決
Thu Aug 11 15:07:20 CST 2016 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.
小溪,22
2016-08-11
造成這個問題的原因是你用的Mysql版本過高,mysql在高版本中增加了數據加密技術,也就是SSL協(xié)議,在用戶通過第三方軟件連接時需要對連接信息進行SSL轉換加密,而你提供的地址如果沒有申明SSL轉換,就會導致新版mysql無法識別,相當于你提供了錯誤的地址。解決方法是在url后面加上SSL申明useSSL=true。比如我這樣:"jdbc:mysql://localhost:3306/zx?useUnicode=true&useSSL=true"