Solve the problem that mysql service cannot be started and Mysql is reinstalled in the last step.
Mysql services are often the most troublesome and often need to be reinstalled. Many people cannot unload the residual files and cannot install them. This problem occurs next time. When I reinstalled mysql to the last step, it was stuck in the second step of the last step.
For example, it won't work until start service:
Zookeeper
The solution is to delete the registry and data files after uninstalling them.
1. uninstall mysql
You can open the installation package and delete it using the remove option.
2. Delete the installer file 3. Delete the registry.
Directory to be deleted from the Registry: cmd-> regedit
1. HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL directory
2. HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL directory
3. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL directory
4. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControl001t \ Services \ MYSQL directory
5. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControl002 \ Services \ MYSQL directory
6. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MYSQL directory
4. delete data files (important)
To delete the C: \ Documents ents and Settings \ All Users \ Application Data \ MySQL directory, the application data folder is often hidden. You need to check the show hidden folder. 5. Restart (it must be restarted for the effect)
After that, you can reinstall mysql!
So happy !!!!