MySQL 5.5 zip version download, install, uninstall

  Because mysql5.7 added a password expiration function, mysql5.5 was selected, and other versions have not been considered too much. The zip version is relatively simple to install, but the exe version has encountered too many complicated installation steps before the last step of the character failure (see below), I can only remove the reinstallation, I have encountered 11 successful Cai installations, I do n’t know the reason so far. Most of them failed the second time and succeeded. The zip version is easy to install and uninstall. I do n’t believe it. ↓

 

 

 1. Download

  Figure 1. We are still starting from the download, Baidu mysql download, pay attention to distinguish the ads to find the real link.

 

  Figure 2. On April 21, 2020, the button to download the old version on the official website is easy to find. After clicking the link above, you can see the Archives button, which means the file:

 

 

   Figure 3. The latest archive version is now 8.0.18, select the drop-down list, and find the version you want:

 

 

   Figure 4. I chose the last version of 5.5, and then clicked on the Download button after Windows (x86, 64-bit), ZIP , and you can download it directly.

2. Installation

  Figure 5. Find the downloaded mysql file, unzip it to the location where you installed the software, pay attention not to unzip it, obsessive-compulsive disorder does not like to add another layer, and then create a new txt in the root directory, fill in the following content and save, this content Is to make the mysq character set default UTF-8, if not changed, the default latin1, which is ISO-8859-1, does not support Chinese:

1 [client]
2 port=3306
3 default-character-set=utf8
4 [mysqld] 
5 port=3306
6 character_set_server=utf8
7 sql_mode=NO_ENGINE_SUBSTITUTION,NO_AUTO_CREATE_USER

  Figure 6. Then click the view button above the folder and check the file extension:

 

 

   Figure 7. Rename [New Text Document.txt] to [my.ini] and confirm:

 

 

   Figure 8. Configure the bin directory of mysql into environment variables, so that you can call the commands in the bin directory without switching to the bin directory of mysql. You will use it in the future. Next [Advanced System Settings]-lower right [Environment Variables]:

 

 

   Figure 9. Next, install the mysql service, open cmd as shown:

 

 

   Figure 10. Enter [mysqld -install] and press Enter. [Service successfully installed.] Appears to indicate that the installation was successful. Note that the entered mysqld is not mysql. Confirm whether the installation is successful after pressing Enter:

 

 

   Figure 11. Continue to enter the command, enter [net start mysql] to start the service. The mysql service is automatically started by default, that is, it will automatically start when it is turned on, but it does not start automatically when we have just installed it.

 

 

   Figure 12. The installation is now complete, but there is no password by default. We continue to enter commands in the command window, log in to mysql and set a password, enter [mysql -uroot -p] and press Enter twice in succession , and the following interface appears to indicate successful login. -uroot means that username is root, which is the default super administrator user installed by mysql, -p enter to enter the password, but the password is empty, so just continue to enter:

 

  Figure 13: We see that the previous path has changed from the default [C: \ Windows \ system32>] to [mysql>] when we just opened cmd. At this time, we must enter the mysql command again, enter mysql The code [set password = password ('admin');] Enter, the [Query OK ...] shown in the figure below indicates that the operation was successful. The meaning of this string of codes is to change the password of the logged-in user to [admin]. Note that adding a semicolon at the end indicates the end of this SQL statement.

 

3. Uninstall

  Figure 14. Also in the administrator's cmd, first shut down the service [net stop mysql], and then enter the uninstall command [mysqld -remove], as shown in the following figure: uninstallation is complete:

 

Guess you like

Origin www.cnblogs.com/xfyuao/p/12746427.html