PHP PDO connect to MS SQLServer Express using SSL

前端 未结 1 539
春和景丽
春和景丽 2021-01-18 09:15

I have a remote MS-SQL Express 2012 server that is set up for use with SSL. I have all the certs I need. But how can I create a PDO connection to this server using SSL? I ha

相关标签:
1条回答
  • 2021-01-18 09:41

    (Microsoft OS Only) In order to connect securely, append 'encrypt=true' to the connection string. A valuable blog on the topic.

    Also Of Note:

    Make sure you are using:

    • Microsoft Drivers

    Make sure you aren't using:

    • Outdated
    • Wrong Driver

    The drivers are located here: Microsoft provided drivers.

    0 讨论(0)
提交回复
热议问题