前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >数据库端口号怎么修改_sqlserver查看sa密码

数据库端口号怎么修改_sqlserver查看sa密码

作者头像
全栈程序员站长
发布2022-09-27 16:07:42
17.5K0
发布2022-09-27 16:07:42
举报
文章被收录于专栏:全栈程序员必看

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

今天遇到一个问题,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.

更改后终于可以访问了。

【编辑推荐】

【责任编辑:段燃 TEL:(010)68476606】

点赞 0

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/184375.html原文链接:https://javaforall.cn

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
数据库
云数据库为企业提供了完善的关系型数据库、非关系型数据库、分析型数据库和数据库生态工具。您可以通过产品选择和组合搭建,轻松实现高可靠、高可用性、高性能等数据库需求。云数据库服务也可大幅减少您的运维工作量,更专注于业务发展,让企业一站式享受数据上云及分布式架构的技术红利!
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档