Solve the problem that mysql service cannot be started and Mysql is reinstalled in the last step.

Source: Internet
Author: User

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:


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 !!!!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.