sqlserver端口的更改方法

sql server端口如果出现问题,会直接影响sql server的登录,下面就教您sql server端口的更改方法,供您参考,让您不再为sql server端口问题而头疼。

创新互联专业为企业提供阆中网站建设、阆中做网站、阆中网站设计、阆中网站制作等企业网站建设、网页设计与制作、阆中企业网站模板建站服务,10年阆中做网站经验,不只是建网站,更提供有价值的思路和整体网络服务。

今天遇到一个问题,sql server无法登陆,到Services里看,服务没有起来。但是在启动Service时遇到问题说无法启动。去Administrative Tools->Event Viewer中查看了一下,发现如下错误(该错误在SQL Server日志中也可以查看到,目录在C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log):

Server TCP provider failed to listen on [ 'any' 1433]. Tcp port is already in use.

TDSSNIClient initialization failed with error 0x2740, status code 0xa. Reason: Unable to initialize the TCP/IP listener. Only one usage of each socket address (protocol/network address/port) is normally permitted.

知道可以用netstat -ano命令查看系统sql server端口的使用情况。检查后没有发现1433端口在使用。

所以直接改了SQL Server的TCP/IP端口。更改办法如下:

In SQL Server Configuration Manager, expand SQL Server Network Configuration, and then click on the server instance you want to configure.
In the right pane, double-click TCP/IP.
In the TCP/IP Properties dialog box, click the IP Addresses tab.
In the TCP Port box of the IPAll section, type an available port number. For this tutorial, we will use 1500.
Click OK to close the dialog box, and click OK to the warning that the service must be restarted.
In the left pane, click SQL Server Services.
In the right pane, right-click the instance of SQL Server, and then click Restart. When the Database Engine restarts, it will listen on port 1500.
更改后终于可以访问了。

【编辑推荐】

sql server日志文件过大的解决办法

sql server外键建立的写法

教您sql server外键的设置和删除

sqlserver分页存储过程实例

SQL SERVER分区视图

网站题目:sqlserver端口的更改方法
分享链接:http://www.mswzjz.cn/qtweb/news14/122364.html

攀枝花网站建设、攀枝花网站运维推广公司-贝锐智能,是专注品牌与效果的网络营销公司;服务项目有等

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 贝锐智能