Eclise Mysql JDBC连接并测试 解决WARN: Establishing SSL connection without server's identity verificatio

1.下载Mysql connector https://dev.mysql.com/downloads/connector/j/

Eclise Mysql JDBC连接并测试 解决WARN: Establishing SSL connection without server's identity verificatio_第1张图片

2.在Eclise导入下载并解压好的jar文件

复制到lib文件里

Eclise Mysql JDBC连接并测试 解决WARN: Establishing SSL connection without server's identity verificatio_第2张图片

然后右键这个jar文件  Build Path —> Add to Build Path

Eclise Mysql JDBC连接并测试 解决WARN: Establishing SSL connection without server's identity verificatio_第3张图片

3.接下来进行测试,结果及数据表显示如下

如果你想要测试源码并询问我,请关注公众号“肩头的梦呓”  并回复1

Eclise Mysql JDBC连接并测试 解决WARN: Establishing SSL connection without server's identity verificatio_第4张图片

Eclise Mysql JDBC连接并测试 解决WARN: Establishing SSL connection without server's identity verificatio_第5张图片

解决WARN: Establishing SSL connection without server's identity verificatio

Put the useSSL=false at the end of the name database:

 

你可能感兴趣的:(数据库)