(已解决)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逆向工程时,连接数据库出现如下错误:

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.

查阅资料发现,数据库连接的url需要改为connectionURL="jdbc:mysql://localhost:3306/ssm?useSSL=false",即在曾经的url后面添加useSSL=false即可

posted @ 2023-01-15 13:59  喵酱的花椒  阅读(11810)  评论(0)    收藏  举报