问题描述
sql server 无法启动 10013错误
系统日志里面的事件是 7024
SQL Server (MSSQLSERVER) 服务由于下列服务特定错误而终止:
以一种访问权限不允许的方式做了一个访问套接字的尝试。
sqlserver里面报错 就是端口给占用
2022-07-02 19:36:36.00 spid21s Error: 26023, Severity: 16, State: 1.
2022-07-02 19:36:36.00 spid21s Server TCP provider failed to listen on [ ‘any’ 1433]. Tcp port is already in use.
2022-07-02 19:36:36.00 spid21s Error: 17182, Severity: 16, State: 1.
2022-07-02 19:36:36.00 spid21s TDSSNIClient initialization failed with error 0x271d, status code 0xa. Reason: Unable to initialize the TCP/IP listener. An attempt was made to access a socket in a way forbidden by its access permissions.
2022-07-02 19:36:36.00 spid21s Error: 17182, Severity: 16, State: 1.
2022-07-02 19:36:36.00 spid21s TDSSNIClient initialization failed with error 0x271d, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. An attempt was made to access a socket in a way forbidden by its access permissions.
2022-07-02 19:36:36.00 spid21s Server is listening on [ ::1 27697].
2022-07-02 19:36:36.00 spid21s Server is listening on [ 127.0.0.1 27697].
2022-07-02 19:36:36.01 spid21s Server local connection provider is ready to accept connection on [ \.\pipe\sqlsatellitelaunch ].
2022-07-02 19:36:36.01 spid21s Resource governor reconfiguration encountered an issue (HRESULT code : 0x80040002, reason: Construction of Launchpad Connection failed), while sending active external resource pool ids to launchpad. This will not fail reconfigure.
2022-07-02 19:36:36.01 spid21s Error: 17826, Severity: 18, State: 3.
2022-07-02 19:36:36.01 spid21s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2022-07-02 19:36:36.01 spid21s Error: 17120, Severity: 16, State: 1.
2022-07-02 19:36:36.01 spid21s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the operating system error log for information about possible related problems.
原因分析:
我怀疑之前用sql插入数据挺大量的 等不及 就直接关了 就启动不了。
系统日志那个 查了一轮 啥东西都没发现 放弃。
sqlserver 日志那里 跟着 sqlserver启动过程看了下来。发现就是上面那个error 端口启动不了。
但是我又没有发现端口给占用,后来试了一下 Winsock协议配置有问题 就解决了
解决方案:
命令行执行下 netsh winsock reset
系统日志(电脑win10)
计算机管理-》系统工具-》事件查看器-》windows日志-》系统
SqlServer日志
安装SqlServer文件夹
D:\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Log\ERRORLOG
希望你有这样的问题 一下搜到 节省事件