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:
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. I died:
The installation of MySQL shows no response. Generally, it shows that the 2 or 3 items in the last step of installing the MySQL program will not change.
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) and delete all
4. query MySQL on drive C and delete all
5. Just reinstall it.
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.
I installed it for one afternoon using the above method, but it still won't work.
Finally, because my Server is Windows Server 2008 RC
So I want to see if it is a compatibility issue. Here is the latest mysql5.5.28.
So in this step, I removed the check:
Find the program named mysqlinstanceconfig.exe under the binfile folder in the mysqlinstallation directory, and right-click the property, as shown in settings:
Double-click mysqlinstanceconfig.exe.