在 Windows 11 中安装 SQL Server 2019 时出错

Getting Error Installing SQL Server 2019 in Windows 11

我正在尝试在 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

  Feature:                       SQL Server Replication
  Status:                        Failed
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  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

  Feature:                       SQL Browser
  Status:                        Passed

  Feature:                       SQL Writer
  Status:                        Passed

有人可以帮忙吗?

根据文档(link稍后编辑)Windows 11 现在支持 SQL Server 2019。此文档的 revision 发生在 12 月 13 日. 下面留下原来的答案。


以下未反映最新文档,在发布此答案后已更改。

SQL 目前 Windows 11 不支持 Server 2019。这在 SQL Server 2019: Hardware and software requirements - Operating system support 中通过省略 Windows 11 进行了记录。因此,任何在这样的 OS 上成功获得它 运行 的尝试都可能不受支持。

“解决方案”是使用受支持的操作系统(参见上文 link)。您可以将 Windows 的安装降级回 10 或重新安装。否则,您可以使用具有受支持操作系统的虚拟机或使用 [Linux] 容器,例如 Docker(Windows Linux (WSL) 的子系统是 not supported).

希望会添加支持,但很可能不会,您将不得不等待 SQL 明年某个时候的 Server 2022。

如果仍然需要答案,SQL Server 2019 和之前的版本在 Windows 11 上安装有问题,因为 BitLocker 对硬盘驱动器进行了加密。 要跳过这个问题,有两个简单的方法:

  • 在第二个物理驱动器上安装(服务和数据库文件)
  • 使用磁盘管理创建一个虚拟硬盘,使用 MBR 分区,然后在上面安装 SQL 服务器