Root user password is required for Mysql uninstallation and reinstallation after installation on windows
Today ready to continue learning Mysql, Mysql environment on the current windows to uninstall the reinstall, in the installation process has been reported that the current root password, has not known what is going on, the following is the solution.
1. Clear MYSQL installation directory, default is C:\Program Files (x86)
2. Clear MYSQL data storage directory on my machine under C:\ProgramData\MySQL directory
Delete MySQL folder
3. This step is very important, no matter how I uninstall MYSQL before emptying the remnants of the file or to enter the original password, and then try to find the registry, after emptying really effective.
Delete the registry data, through regedit, delete the following files:
reference
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL
After finishing the above, reinstall it and OK.