简体   繁体   中英

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

I am facing an issue in installing SQL Server 2019 on my Windows 11 Home machine.

The problem is

Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes

I have added the log details below

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

I tried reinstalling the SQL Server multiple times, both Developer edition and Express edition, but no luck.

I also tried changing the NT Service/MSSQLServer to NTAuthority/NetworkService or NTAuthority/LocalSystem , but again - no luck.

Could anyone help me?

在此处输入图像描述

Event Viewer log:

在此处输入图像描述

Twisted is designed to make stuff like that fairly simple

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()

The installation storage device seems to have/report an inappropriate sector size.

Take a look at Troubleshoot errors related to system disk sector size greater than 4 KB and Microsoft support policy for 4K sector hard drives in Windows .

I'd suggest creating a new thread and running a web server (such as Python's built-in SimpleHTTPServer or BaseHTTPServer ). Threads really aren't that scary when it comes down to it.

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()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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