WARN: Establishing SSL connection without server
source: http://blog.itpub.net/27099995/viewspace-2121216/
菜鸟开始自学java,很多东西不会,瞎搞!
遇见一个问题解决一个!
Wed Jun 29 17:59:32 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.
一开始看到是Warn,所以可以不用理会,但是作为入门都不够格的我,看着别扭啊!
原因是MySQL在高版本需要指明是否进行SSL连接。
我的MySQL是:5.7.11 算是最新版本的了。
解决方案如下:
在url后面加上: ?characterEncoding=utf8&useSSL=true
遇见一个问题解决一个!
Wed Jun 29 17:59:32 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.
一开始看到是Warn,所以可以不用理会,但是作为入门都不够格的我,看着别扭啊!
原因是MySQL在高版本需要指明是否进行SSL连接。
我的MySQL是:5.7.11 算是最新版本的了。

解决方案如下:
在url后面加上: ?characterEncoding=utf8&useSSL=true

【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!