連接MySQL,eclipse運(yùn)行以后出現(xiàn)這個(gè)怎么解決
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
造成這個(gè)問題的原因是你用的Mysql版本過高,mysql在高版本中增加了數(shù)據(jù)加密技術(shù),也就是SSL協(xié)議,在用戶通過第三方軟件連接時(shí)需要對(duì)連接信息進(jìn)行SSL轉(zhuǎn)換加密,而你提供的地址如果沒有申明SSL轉(zhuǎn)換,就會(huì)導(dǎo)致新版mysql無法識(shí)別,相當(dāng)于你提供了錯(cuò)誤的地址。解決方法是在url后面加上SSL申明useSSL=true。比如我這樣:"jdbc:mysql://localhost:3306/zx?useUnicode=true&useSSL=true"