iT邦幫忙

0

php 連線mssql問題

https://ithelp.ithome.com.tw/upload/images/20210607/20138057XFWEq6R0ZP.png
我電腦連遠端server的資料庫會過 但遠端server連我的本機sqlserver就會顯示這個問題
https://ithelp.ithome.com.tw/upload/images/20210607/20138057ZnC7465no2.png
我看網路上的教學這邊的相關功能也都開啟了
防火牆port輸入輸出規則也都打開了
https://ithelp.ithome.com.tw/upload/images/20210607/20138057Sx9lFyfNrY.png
附上程式碼
請問各位大神 是哪裡出了問題
我是使用sqlserver2017 win10專業版 php8.0

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

1
Ray
iT邦大神 1 級 ‧ 2021-06-07 18:49:26

通靈一下...
你的《SQL Server 網路組態》只開了 Named Pipe, 沒開 TCP 協定:
https://kafeiou.pw/2019/09/03/1916/

a29286263 iT邦新手 5 級 ‧ 2021-06-07 18:52:40 檢舉

https://ithelp.ithome.com.tw/upload/images/20210607/20138057OxaiyMPmgW.png
我有開 還有什麼可能嗎

Ray iT邦大神 1 級 ‧ 2021-06-08 04:55:10 檢舉

你點開右邊的 TCP/IP 那欄, 把視窗畫面全部貼出來...
對了, 上面 32 位元的網路組態有打開 TCP/IP 嗎?

0
小魚
iT邦大師 1 級 ‧ 2021-06-07 19:14:53

為什麼要用遠端Server連你的本機?
這有點...危險喔...
另外也要看看AP設定那些的有沒有通,
你先隨便寫個網站連看看能不能連吧...
還有相應的防火牆也要關掉.

a29286263 iT邦新手 5 級 ‧ 2021-06-09 12:55:20 檢舉

沒有啦 試著連一下而已

我要發表回答

立即登入回答