iT邦幫忙

2

在MSSQL下使用127.0.0.1連線

前言

這是最近架設Gogs的時候,因為Gogs連線DB只能使用IP,
然後自己又想使用LocalDB當作Gogs的DB引擎,
找了一些文章,才自己Try出最簡單的方法,來分享給大家。

環境

Windows 10
MSSQL Developer 2017

操作方式

1.先到SQL Server 組態工具

https://ithelp.ithome.com.tw/upload/images/20181211/20113542v5BZ8pjkRP.png

2.選擇 SQL Server網路組態再選 TCP/IP

https://ithelp.ithome.com.tw/upload/images/20181211/20113542eivaEs0u0k.png

3.右鍵點開 選擇內容

https://ithelp.ithome.com.tw/upload/images/20181211/20113542wkw0cRZW8G.png

4. 選擇IP位址、找尋127.0.0.1、然後開啟使用

https://ithelp.ithome.com.tw/upload/images/20181211/20113542oxAt90F9MV.png

好啦大致上完成啦。

結語

其他網路上好像還有其他方式可以設定,像是使用 Named Pipes
https://dotblogs.com.tw/jamesfu/2013/04/12/aliasname
等等
但是還是沒有我這個方式最直接。


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

尚未有邦友留言

立即登入留言