0
点赞
收藏
分享

微信扫一扫

mybatis自动生成代码无法生成,原因连接数据库失败

1.执行命令: mvn mybatis-generator:generate

2.报错信息:

Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

mybatis自动生成代码无法生成,原因连接数据库失败_数据库连接


3.解决方法:在数据库连接处添加

&useSSL=false     或   &useSSL=false


mybatis自动生成代码无法生成,原因连接数据库失败_数据库连接_02


4.总结

SSL(Secure  Sockets Layer),安全套接字协议。useSSL=false:使用用户账号密码进行连接。


举报

相关推荐

0 条评论