【數據庫】SQL Server無法連接127.0.0.1

【問題】

連接報錯:

An exception of type System.Data.SqlClient.SqlException was thrown.

 Additional exception information: A network-related or instance-specific error occurred while establishing a connection to SQL Server.

 The server was not found or was not accessible

【解決辦法】

1、打開sqlserver服務管理器,開啓TCP/IP連接

2、設置TCP/IP中屬性的"IP ALL"的端口爲1433

3、重啓SQL服務就可以用127.0.0.1登錄上了

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章