Uninstall MySQL 1. In the control panel, uninstall all components of MySQL Control Panel -> All Control Panel Items -> Programs and Features, uninstall all programs related to MySQL 2. Find your MySQL installation path and see if there are any folders related to MySQL. Delete them all. If it is installed on the C drive, check the two folders C:\Program Files (x86) and C:\Program Files 3. Delete the registry about MySQL Enter "C:\Windows\regedit.exe" in the file explorer and the registry will pop up. Delete the HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL folder If you can find the following content, delete it
4. Paste the following red part into the address bar of the file explorer (this is a hidden folder) C:\ProgramData\MySQL Delete all contents in this folder 5. Restart your computer Download MySQL Official website address: https://dev.mysql.com/downloads/mysql/ 1. After downloading, unzip the file to your preferred location 2. Add in the my.ini configuration file:
3. Configure environment variables: (path) C:\Program Files\MySQL\MySQLData\;%MYSQL_HOME%\bin 4. Open cmd and go to the bin directory of the compressed package and run:
mysql3306 is just a name. You can change it to your favorite name. After running, "Service successfully installed" will appear, indicating success. 5. Initialization statement C:\Program Files\MySQL\mysql-5.7.28-winx64\bin>mysqld --initialize After success A lot of initial data will appear in the database (data) storage path you set 6. Start the service in cmd 7. Find the file ending with .err in the initialized file Open the file and search for [Note] A temporary password is generated for root@localhost: followed by the initial password. 8. Log in to mysql: Enter the command in cmd: To modify the password after logging in, run the command: Summarize The above is the tutorial on how to reinstall MySQL on Windows 64-bit (Zip version, unzipped version MySQL installation). I hope it will be helpful to everyone. Thank you very much for your support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Detailed explanation on how to deploy H5 games to nginx server
>>: Four methods of using JS to determine data types
Table of contents illustrate 1. Enable Docker rem...
When writing a web project, I encountered an intr...
This article shares with you the installation of ...
This article uses examples to explain the princip...
This article is mainly for those who do not under...
In the previous article https://www.jb51.net/arti...
1. Preparation before installation 1. Download th...
Preface This article uses the new features of MyS...
Today, when I was looking at the laboratory proje...
1. Download 4 rpm packages mysql-community-client...
Table of contents 1. Example: this can directly g...
1. Permanent modification, valid for all users # ...
Many friends have always wanted to know how to ru...
Table of contents Preface Creating Components Sum...
Table of contents Million-level data processing s...