SQL server 2008 r2 installation error Could not open key:

When installing sql server 2008 r2, the following error occurred:
Could not open key:
UNKNOWN\Components\7ABFE44842C12B390AF18C3B9B1A1EE8\000021599B0090400100000000F01FEC. Verify that you have sufficient access to that key, or contact your support personnel.
Write picture description here

I am relatively sure that I should have deleted the sql servel I installed before. I checked online that it was a permissions issue, and then it said that I just need to enter the command in cmd: secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose, and then reinstall it.
However, after I entered it, it prompted that the "secedit" command is not an internal or external command, nor is it an operable program or batch file. I checked and it said that it requires administrator privileges to run, but I ran it using administrator. ah.

The reason that this is not an internal command may mean that there is no such executable file on the computer, so I went to C:\Windows\System32 to see if there was secedit.exe, and found that it was there, but the name was secEdit.exe. I don’t know if this has any impact. Anyway, I changed the name and executed it in cmd, but it still didn’t work.

Later, I found on the Internet that the program was not executable. This error might be because the path was not configured properly. Right-click on the computer->Properties->Advanced System Settings->Environment Variables->administer's user variables, find the path, click Edit and see if there is a path to system32 in it, if not, add it, and click OK . At this time, go back to cmd and run the above command, and there should be no errors.
Write picture description here
You may need to wait for a while, and it will look like the picture after it is completed.

Then, re-run the sql server installation program, and there will be no errors! !

Guess you like

Origin blog.csdn.net/sinat_37998852/article/details/79744483