Hi @Binh Truong ,
> 2021-04-02 22:01:30 Slp:The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.
Suggest you do a manual cleanup for previous failed installation and then reinstall it.
- Uninstall the existing SQL Server and all the components from the add remove program.
- Backup the registry.
- Delete the following keys using regedit:
--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
--HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
- Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and delete all the sub-keys referencing SQL Server.
- Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
- Rename all the SQL Server folders in the computer.
- Reboot the machine.
Refer to the similar thread Installation problem with SQL Server 2017 (Error 1639) and SQL Server Installer says: MOF compiler could not connect with the WMI server.
If the response is helpful, please click "Accept Answer" and upvote it, thank you.