使用idea,datagrip连接数据库时,都需要先进行驱动的设置,有两种方法,第一种是在软件内直接下载驱动,这种方式通常需要一段时间,下载比较慢;第二种,我们可以直接指定使用本地已有的MySQL连接jar包,需要提前将jar包保存到本地
种一棵树最好的时间是10年前,其次就是现在,加油!
--by蜡笔小柯南
在进行连接时,报如下错误:
Failed
[08S01]
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.
No appropriate protocol(protocol is disabled or cipher suites are inappropriate)
Failed
[08S01]
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.
No appropriate protocol(protocol is disabled or cipher suites are inappropriate)
翻译:
通信链路故障
最后一个成功发送到服务器的数据包是0毫秒前。驱动程序尚未从服务器接收到任何数据包。
没有合适的协议(协议被禁用或密码套件不合适)
由于我们使用的driver
驱动版本与数据库的版本有差异,需要在URL
中加入以下命令:
?useSSL=false
如下图所示:
再进行连接,提示连接成功
如果你有任何疑问或经验分享,可以在评论区留言哦~~
不管在任何时候,我希望你永远不要害怕挑战,不要畏惧失败。每一个错误都是向成功迈出的一步,每一个挑战都是成长的机会,因为每一次的努力,都会使我们离梦想更近一点。只要你行动起来,任何时候都不算晚。最后,把座右铭送给大家:种一棵树最好的时间是10年前,其次就是现在,加油!共勉 💪。
快来吧 👇👇👇
不论是Java的基础资料,还是那些看似枯燥实则精妙的八股文,这里都有你意想不到的解读方式,让复杂变简单,让枯燥变有趣~