Can't install SQLServer on Windows server 2022 but no problem in Server 2019

KZS 151 Reputation points

I clean installed Windows server 2022 and I can't install SQL Server 2019. I receive error
"Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes."

The same server was working without problem with Windows server 2019 and Microsoft Sql 2019

I attached the log


SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,322 questions
{count} votes

4 answers

Sort by: Most helpful
  1. YufeiShao-msft 7,081 Reputation points

    Hi @KZS

    The possible cause is a corruptied user profile for the user account used to start the database.
    When you come to Server Configuration page, change the Account Name of SQL Server Database Engine to NT AUTHORITY\NETWORK SERVICE (if it failed, you can also try to ues NT AUTHORITY\SYSTEM)

    1 person found this answer helpful.
    0 comments No comments

  2. KZS 151 Reputation points

    I tried both Account name and still the same error

    1 person found this answer helpful.
    0 comments No comments

  3. Erland Sommarskog 106.5K Reputation points

    This error message means that SQL Server does not start, when Setup wants to run installation scripts.

    You need to look in the errorlog file to find more information. You find it in C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\LOG\ERRORLOG assuming a default instance.

    When Yufeishao suggested a corrupted user profile, it was a shot from a hip. It is a common reason, but you really need to look at the errorlog first.

    1 person found this answer helpful.
    0 comments No comments

  4. KZS 151 Reputation points

    Unfortunately I wasn't able to fix the problem with Windows 2022. Tried all fixes I found without success.
    I had to use Windows 2019 to fix the problem and be able to use MSSQL.