监控或者连接SQLServer数据库报如下错误
如果我们在监控SQLServer出现以上错误提示
解决方法如下:
我们只要在连接SQLServer的url后面加上;encrypt=true;trustServerCertificate=true;就可以了
请查看添加说明
这样就可以了
其他说明:
监控SQLServer数据库报错 The server selected protocol version TLS10 is not accepted by client preferences [TLS12]如何处理
监控SQLServer数据库报错 org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption 如何处理