The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption

后端 未结 2 1057
误落风尘
误落风尘 2020-11-30 11:27

I used this code to create a connection to SQL Server.

String connectionUrl = \"jdbc:sqlserver://IP:1433;\" +
        \"databaseName=db;user=db;password=pwd\         


        
2条回答
  •  温柔的废话
    2020-11-30 12:06

    Is it

    databaseName=MyDB
    

    or

    database=MyDB
    

    ?

    Try the latter.

    Are you on a Windows Machine? http://www.microsoft.com/en-us/download/details.aspx?id=24009

    Download that and try to talk to your server outside of your code. The port query tool will show you if its a firewall (or similar) issue, outside of the code.

提交回复
热议问题