Solve the Problem of MySQL reinstallation

Source: Internet
Author: User

 
I recently encountered a problem of MySQL reinstallation at work. Today I will record my solution process. First of all, for some reason, I Have To uninstall mysql and then reinstall mysql. No matter how I use the control panel to uninstall and delete programs or the security guard, I will encounter a problem, it is installed to a location like this. When server start is started, the program will not respond, and it will always die there:
Www.2cto.com
As a result, I tried to find a solution everywhere on the Internet. According to most people's statements, I tried not to do it. Just install MySQL and show it unresponded, it is usually displayed that the 2 or 3 items in the last step of installing the MySQL program do not move. This is generally because the MySQL database service item you have installed is occupied.

Solution:
One way: When you can install MySQL, the default service name is "MySQL" in this step. You only need to change this name. Two methods: 1. uninstall MySQL 2. Delete the installation directory and data storage directory 3. query mysql in the Registry (regedit) 4. query MySQL on disk C, delete all 5. reinstall
Note that 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
7. Delete the C: \ Documents ents and Settings \ All Users \ Application Data \ MySQL directory
You can choose either of the above two methods. it is OK to reinstall the new MYSQL version. Note: After the deletion is complete, you must restart the computer before installing it.
Www.2cto.com was installed in the above method for one afternoon, but it still won't work. Finally, because my Server is Windows Server 2008 RC, I want to check whether it is compatible. My next question is the latest mysql5.5.28. So I removed the check when taking this step: then, find the program named mysqlinstanceconfig.exe under the binfile folder in the mysqlinstallation directory, right-click the property, such as setting: Double-click mysqlinstanceconfig.exe, and install it step by step!

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.