Mysql8.0.22 installation and common problems
Article Directory
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:
You can click Go to download page to download the 32-bit installation version;
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.
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.
2. Install 8.0.2 mysql database
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.
After completion, the following figure will pop up, indicating that the installation has been successful
3. Configuration of environment variables
Click Properties,
click Advanced System Settings,
click Environment Variables,
find the path variable of the system variable, and edit
it. Copy the installation path of your mysql to the path variable,
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.
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
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