8.0.22 Mysql detailed installation

Mysql8.0.22 installation and common problems


Preface


Tip: The following is the content of this article, the following cases are for reference

1. Download and install MySQL?

1. Download from mysql official website: https://dev.mysql.com/downloads/mysql/
2. Download steps:
This is the download version of the official website
You can click Go to download page to download the 32-bit installation version;
Insert picture description here

2. Installation of mysql version 8.0.22

Because I installed a compressed version of 5.5mysql database before

1. Uninstall mysql5.5 compressed version

Run cmd with administrative privileges, jump to the bin directory where mysql is installed, and enter the following command, pay attention to shut down the service before uninstalling.
Insert picture description here
If the service is still running, run sc delete the service name, (I defined the mysql service here, so sc delete mysql )
Then you need to delete the registry
windows+R and start running, enter regedit, open the registry, and delete the MySQL file

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Application

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Application

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Application

Some may not have a mysql folder, delete if there is one, and no need to operate.
Insert picture description here

2. Install 8.0.2 mysql database

Insert picture description hereInsert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
The first "Use Strong Password Encryption for Authentication" password encryption authentication is more secure; the
second "Use Legacy Authentication Method" is compatible with MySQL 5.x version and has good compatibility.
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
After completion, the following figure will pop up, indicating that the installation has been successful
Insert picture description here

3. Configuration of environment variables

Click Properties,
Insert picture description here
click Advanced System Settings,
Insert picture description here
click Environment Variables,
Insert picture description here
find the path variable of the system variable, and edit
Insert picture description here
it. Copy the installation path of your mysql to the path variable,
Insert picture description here
so that the environment variable is configured.
Next, test
to start the net start mysql command with administrator privileges Start the service (you don't need to start it, because the default is already started); if the following appears, it means the configuration is successful.
Insert picture description here
If it displays "not an external or internal access command", you need to check the environment variables again. The following is successful, you can call mysql -u username -p Password, login verification

to sum up

Personal error

If you have installed other versions on your computer before, you must clean it up, including the mysql file in the hidden Program Data directory of the C drive. Because I have installed the mysql data of version 8.0.19 before, it may not be cleaned up, so the following appears The error Insert picture description here
will be stuck in this place all the time. Solution
Use the administrator dos window to enter the directory of your mysql installation package, and then run it to solve it
Insert picture description here

Guess you like

Origin blog.csdn.net/qq_51240732/article/details/111355292