mysql 5.45 以后需要 需要 安全套接字问题
错误异常: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
这句话的意思是。mysql 5.5.45+, 5.6.26+ and 5.7.6 需要 ssl 安全套接字(需要证书),如果不用 需要用参数指明。
所以 这么写:jdbc:mysql://192.168.31.150:3306/subaccount?useSSL=false
能耍的时候就一定要耍,不能耍的时候一定要学。
天道酬勤,贵在坚持
posted on 2018-10-09 10:44 zhangyukun 阅读(126) 评论(0) 编辑 收藏 举报