Install sql server2008 stepping on the pit record


foreword

This article records the bitter blood and tears history of my installation of sql server2008.
It was originally a small software that took no more than half an hour to install, but it took me a day to install it. Woohoo, so sad!

1. The first pit: the net framework3.5 framework cannot be installed

This pit can be said to be the one that took the longest time, and this pit is not general, it is just a problem with the personal computer, but since this problem took me too much time, it took me a whole afternoon! Still have to record it well.
The installation of sql server2008 depends on the net framework3.5 framework , which is usually included in the win8 system, but currently win10 is the mainstream, and win10 comes with a framework above 4.0, so you need to manually download this frame.
Just download it. Originally, downloading this framework is a very simple matter. Read this article
. However, if Mercury is retrograde alone, simple things will become very complicated. The installation on my computer has the problem of not being able to connect to the internet due to network policy
insert image description here
. Okay. Network error, then I will consider offline installation. So I tried to install the 3.5 framework offline. Refer to this Zhihu article and install it offline . The cool thing is that I can't do any of the three methods listed in it. * got the dog. It has taken me more than three hours at this time, and I really want to cry but have no tears. Later I discovered that these offline installation methods are essentially downloading the cab file by yourself, and then using the dism command to install , but the most important point is that the version of the downloaded cab file must be exactly the same as the system version of the machine. Otherwise, various errors will be reported all the time . And I don't know where to throw the image file of my installed system. Make an image file yourself? It's not impossible, there are corresponding tutorials on the Internet, I tried it, but it still failed. At this point an afternoon is gone, and I'm already hovering on the verge of collapse.
Fortunately, the emperor paid off. I found that in my computer system, the windows update turned out to be in an error state.My intuition told me that this should be the root of the problem, and then I went to the official website of Microsoft, downloaded a new update package, updated it manually, and then I used the above online installation method, and it was installed in one go .
I thought I was finally coming to the end of my hardships, but there was still a pit waiting for me.

2. The second pit: the computer name is the same as the user name, and the installation fails

After the framework is installed, the installation will begin later. For the installation files and tutorials, I recommend everyone to pay attention to the Vposy software installation housekeeper official account, which contains sql server2008 software and installation tutorials.
I followed the steps of this official account step by step, and there was no problem at first, but at the end, it reported to me an error of is not a valid login or you do have permission .
Mad, the installation is almost finished, it told me that the installation failed, which means I have to uninstall again, and then install again, but the uninstallation of sql is not as simple as the installation. I really want to cry but have no tears. No way, had to uninstall and reinstall.
Before reinstalling, you have to solve this problem first. The essence of this problem is that your computer name and user name are duplicated, so it fails. The solution to this problem is just to read this blog. To be on the safe side , you can change your computer name before installation, or you can name an instance by yourself instead of defaulting to the instance name during installation. This also ensures that the two names do not conflict. There is also a little trick, that is, your computer name is the default, and you have not changed it yourself . Like this , the account you log in is administrator, so generally you don’t need to change the computer name , and you can install it according to the tutorial.


insert image description here

Summarize

I would like to use this article to commemorate the day I was cheated by sql server, and I hope that people in the future will not follow in my footsteps.

Guess you like

Origin blog.csdn.net/bookshu6/article/details/121061851