After mysql is uninstalled, the mysql service is still in progress and the read description fails. Error Code 2 and mysql error code

Source: Internet
Author: User

After mysql is uninstalled, the mysql service is still in progress and the read description fails. Error Code 2 and mysql error code

First, I used 360 software manager to uninstall mysql5.5. After I uninstalled mysql, I deleted the mysql installation directory in sequence and the MySql folder in the hidden folder ProgramData under drive C.

Then cmd-> regedit, press enter, enter the registry, and delete

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Control/MySQL,

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Control/MySQL,

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/MySQL, HKEY_CURRENT_USER/Software/MySQL.

However, I found that the mysql service is still in the windows Service and displayed "<read description failed, error code 2>". Double-click it to display it, if the file cannot be found on the local computer, it cannot be started or deleted. The service named "mysql" exists there. If you do not delete it, it will have a bad impact on you to reinstall mysql. When mysql is installed and configured, the name "mysql" is entered by default in the last or fourth step, the name here is the name of the windows service. At this time, if you still use mysql by default, it will lead to the option starting with "x" in the last window of the configuration, that is, the service cannot be enabled, the reason is that the service named "mysql" already exists and has not been deleted, and it cannot be enabled, which leads to the error. At this time, if you want to configure the service successfully, move the configuration step back to the place where the service name is entered and change "mysql" to another name, as long as it is not the same as the service name already exists on the local computer. I checked it online and used the following method to delete the service named "mysql:

1. choose Start> All Programs> attachments. 2. right-click "command prompt" and click "Run as administrator" 3. run SC delete in the Command Prompt window.

The service name I want to delete is "mysql", so the service name here should be changed to "mysql",Note that: After the steps are completed,Need to restart the computerThe service will be deleted and disappear without restarting.

It still exists. After you restart your computer, after you install mysql, change the service name you want to enter to "mysql" during configuration to "mysql". You will find that the last step in the last window is not

If an error occurs, the configuration is successful.

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: info-contact@alibabacloud.com 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.