I believe that you have had reinstallation experience when using MySQL. If you reinstall MySQL, it is basically the last step. Unless you reinstall the operating system, the reason is that the registry in the system is not deleted. The following is a summary of my experience, which is a blood lesson:
1. Type regedit in "run" to enter the registry.
2. Delete the heky_local_machine/software/MySQL directory
3. HKEY_LOCAL_MACHINE/system/controlset001/services/EventLog/application/MySQL directory Deletion
4. HKEY_LOCAL_MACHINE/system/controlset002/services/EventLog/application/MySQL directory Deletion
5. HKEY_LOCAL_MACHINE/system/CurrentControlSet/services/EventLog/application/MySQL directory to delete
Controlset001, controlset002, not necessarily 001 and 002, may be controlset005, 006, and so on. You can delete them when you delete them.
6. Delete the MySQL folder under C:/Documents and Settings/all users/Application Data/
7. Finally, uninstall MySQL.
8. Delete the folder in the MySQL installation path.
9. Restart your computer.
OK! ~~~~ (Currently, the above methods can be reinstalled successfully when the mysql version is MySQL 5.0. Other versions need to be verified)