2021年4月1日 星期四

[SQL Server]安裝SQL2014遇到"找不到 Database Engine 啟動控制代碼。"錯誤訊息

     最近在處理 Windows Server 2016 上安裝 MSSQL2014,但不知道為什麼安裝總是會跳出下面錯誤:
找不到 Database Engine 啟動控制代碼。

如下圖


 

     查了許久還是沒有辦法解決,還好後面發現Microsoft SQL有安裝錯誤LOG可供查詢,
LOG資料夾位置(:\Program Files\Microsoft SQL Server\120\Setup Bootstrap\Log\YYYYMMDD_hhmmss\)
YYYYMMDD_hhmmss:時間戳記,安裝的時間。
裡面會有SQLServer_ERRORLOG_開頭的文字檔。

打開閱覽LOG檔案後終於發現了一些線索,下面貼出重點訊息:

The server could not load the certificate it needs to initiate an SSL connection. It returned the following error: 0x80090331. Check certificates to make sure they are valid.
Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.

由上面訊息可以得知問題是由於無法加載啟動SSL連接所需的證書,也沒辦法自我簽名證書所造成的。

知道是SSL的問題後,想起來之前有為了資安而更改機碼來停掉了SSL協定,
這邊只好修改機碼再重新打開SSL 3.0協定。

打開 regedit.exe 到下面位置:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 3.0
修改底下 Server 機碼裡名稱為 Enabled 的 DWORD(32位元值) 值為 1;
Client 機碼裡的 DisabledByDefault 值一樣保持為 1。

最後再次重新安裝 MSSQL2014 就可以成功了。



沒有留言:

張貼留言