1. 程式人生 > >SqlServer2005 連線不上 終極解決方法

SqlServer2005 連線不上 終極解決方法

x專案執行後控制檯報錯如下:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 14303 has failed. Error: Connection refused: connect. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port

其實就是你資料庫連線的埠的問題

直接上解決辦法: 開啟 SqlServer 配置管理器---》找的SqlServer 2005網路配置---》雙擊tcp/ip--選擇IP地址---》拉到底---》IPALL 中動態埠設定為1433  完美解決