簡體   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