【已解决】No appropriate protocol (protocol is disabled or cipher suites are inappropriate
问题所在:mysql驱动和url填写错误
解决方法:
这里直接提供mysql8.x的驱动和url,因为mysql驱动和url内容可以向下兼容,但是向上不能拓展。
驱动: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/db9?useUnicode=true&characterEncoding=UTF-8&userSSL=false&serverTimezone=GMT%2B8
(不过这里要注意,我的数据库名是db9)

本文解答了如何解决MySQL驱动中遇到的'No appropriate protocol (protocol is disabled or cipher suites are inappropriate)'问题,提供了适用于mysql8.x的驱动和URL配置示例,并强调了数据库连接设置的重要性。
1526

被折叠的 条评论
为什么被折叠?



