table of Contents
MySQL
download
The download address can be downloaded from the official website. I installed the msi file directly, but I heard that the compressed package installation seems better. Because watching some downloaded compressed packages and installed later, it seems that you have to build your own data files, and feel that you may not be well with your hands. .
Download link: MySQL official website After
entering the official website, press the following operation.
1. Click downloads
2. Pull the page to the bottom and click the content in the red box.
3. Click the content in the red box after the page jumps.
4. After the page jump, do not click to download directly. Click the content in the red box to enter the recommended download.
5. After the page jumps, select the second download file to download.
6. After the page jumps, drag the page to the bottom and click the content in the red box. The download will start, just wait. .
installation
If it is the first installation, I don’t have the first two pictures, just follow the steps.
1. Double-click to open the msi file you downloaded and wait for the pop-up window. The first window is the user agreement, just check the small box at the bottom. Click next.
2. The blue part on the left is Choosing a Setup Type, and on the left are five options, namely Developer Default (developer default version), Server only (only install mysql service version), Client only (only install mysal client) ), Full (all products), Custom (custom). Select Custom and click Next.
3. Tap something in the red box, the arrow to the right turns green, press the arrow. After these two are in the box on the right, press next.
At this time, click the two on the right to choose the installation path and the working data storage path, or you can install it to the C drive by default without operation.
After clicking MySQL Server on the right, click the content in the red box.
4. Click execute to start the installation, and click next after installation.
5. These steps will do by default, click next. (The order of these pictures may be different, just scroll down.)
6. This window will pop up after installation.
Uninstall
(MySQL is safe and there is no problem skip it)
Before SQLyog and MySQL have been unable to connect, I thought that MySQL was not installed properly, so I can uninstall it now. .
1. Right-click the computer and click Manage. Double-click the content in the red box in order.
2. Find MySQL, right-click and select Pause. Leave this page alone.
3. Turn on the computer and delete the MySQL files in these two folders.
Programdata is a hidden file. Click View in the top menu bar and check Show hidden files.
4. Search for the control panel here. Go to the uninstaller page.
Anything with mySQL has been deleted.
5. In the same way, open the registry. Click the contents in the red boxes in order. Select search in the editor,
6. Delete all the contents that can be deleted about MySQL found (note that the path path is not deleted)
Connection with SQLyog
I have been reporting errors when I connected before, and one has been resolved in 2058, 1045, 2003 and another. .
In fact, the encryption method of MySQL 8.0 has changed, and SQLyog still uses the original one, so it cannot connect. Enter cmd as an administrator.
1. Enter mysql -uroot -p to enter MySQL
2. Enter ALTER USER'root'@'localhost' IDENTIFIED WITH mysql_native_password BY'your own password';
then press Enter, and Query OK, 0 rows affected (0.03 sec) appears success.
3. Open the installed SQLyog (SQLyog has many cracked versions on the Internet, and you can click the next step at every step of the installation). The password should be consistent with MySQL as much as possible.
4. Click Connect to complete.