繁体   English   中英

在 Windows 11 上使用 SQL Server 2019 安装 SQL 服务器数据库引擎服务时出错

[英]Error installing SQL Server Database Engine Services with SQL Server 2019 on Windows 11 Home

我在我的 Windows 11 家用机器上安装 SQL Server 2019 时遇到问题。

问题是

等待数据库引擎恢复句柄失败。 检查 SQL 服务器错误日志以了解潜在原因

我在下面添加了日志详细信息

Detailed results:
  Feature:                       Database Engine Services
  Status:                        Failed
  Reason for failure:            An error occurred during the setup process of the feature.
  Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x851A001A
  Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=15.0.4013.40&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

我尝试多次重新安装 SQL 服务器,包括开发版和快捷版,但没有成功。

我还尝试将NT Service/MSSQLServer更改为NTAuthority/NetworkServiceNTAuthority/LocalSystem ,但又一次 - 没有运气。

有人可以帮我吗?

在此处输入图像描述

事件查看器日志:

在此处输入图像描述

Twisted旨在使这样的东西相当简单

import time

from twisted.web import server, resource
from twisted.internet import reactor

class Simple(resource.Resource):
    isLeaf = True
    def render_GET(self, request):
        return "<html>%s Iterations!</html>"%n

def main():
    global n
    site = server.Site(Simple())
    reactor.listenTCP(8080, site)
    reactor.startRunning(False)
    n=0
    while True:
        n+=1
        if n%1000==0:
            print n
        time.sleep(0.001)
        reactor.iterate()

if __name__=="__main__":
    main()

安装存储设备似乎有/报告了不适当的扇区大小。

查看 Windows 中与系统磁盘扇区大小大于 4 KBMicrosoft 对 4K 扇区硬盘驱动器的支持策略相关的故障排除错误。

我建议创建一个新线程并运行一个Web服务器(例如Python的内置SimpleHTTPServer或BaseHTTPServer )。 线程确实不是那么可怕。

from threading import Event, Thread
import BaseHTTPServer

shut_down = Event()

def http_server():
    server_address = ('', 8000)
    httpd = BaseHTTPServer.HTTPServer(server_address, BaseHTTPServer.BaseHTTPRequestHandler)

    while not shut_down.is_set():
        httpd.handle_request()

thread = Thread(target=http_server)
thread.start()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM