Cleanly uninstall and reinstall MySQL

There are always problems with this broken MySQL in the computer, I am going to uninstall and reinstall

uninstall 

1. Open the task manager and stop the MySQL service

2.win+r and enter regedit to open the registry

        删除:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL

[If you don’t have these two in the back, don’t worry about it]

        删除:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL

        删除:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL

3. Enter the c drive to open hidden items

Delete the MySQL folder under Program Files, Program Files (x86), and ProgramData

4. Under the ProgramData folder, delete

 5. Open cmd and enter the command: sc delete mysql to delete the mysql service.

If the deletion fails, it may be a permission problem. Find the file: cmd.exe under C:\Windows\System32, right-click to run as an administrator, and then execute the command

6. Open the control panel to uninstall MySQL, uninstall all

Generally, the failure of uninstallation is because MySQL Connector Net xxx cannot be uninstalled. Here is a program that can solve it. See this post to solve it.

How to solve the problem that MySQL Connector NET xxxx cannot be uninstalled (win10) - Zhihu (zhihu.com)

Install

MySQL official website: https://www.mysql.com/ 

click download 

Pull down, find Downloads, click

 Find mysql install for Win, click

 Click Archive

 Find the version you want from here, generally install 5.6 or 5.7, don’t install 8.x, you will find that the project is not suitable for you, and then read my post to uninstall and reinstall, hee hee

choose the second one, download

I found a very good installation tutorial: (45 messages) MySQL installation and configuration tutorial (super detailed, nanny level)_SoloVersion's blog-CSDN blog_mysql installation and configuration

Guess you like

Origin blog.csdn.net/weixin_46764819/article/details/128509481