当我使用DataGrip连接SqlServer数据库的时候,进行测试连接,结果报错:驱动程序无法通过使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误:“PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”。

这种原因,百度了一下,可能是SSL问题,或者是驱动问题。

然后这个驱动无论换了哪个版本都不可以,后来查了资料,结果是换成jTds的就可以了

大家连接的时候一定先试试先换驱动

Logo

鸿蒙生态一站式服务平台。

更多推荐