Mysql cannot be uninstalled and reinstalled because mysql has not been uninstalled and the registry information has not been deleted. Solution: 1. Delete mysql in the control panel; 2. Delete the my.ini file under the MySQL folder; 3. Open the registry and delete relevant information; 4. Delete the MySQL folder on the c drive.
The problem that the Mysql database cannot be reinstalled after uninstalling it
If MySQL has been installed on the computer before , after uninstalling, if you do not delete it completely, there will be problems in the next installation. The complete uninstallation method of uninstalling MySQL 5.5 is given below:
1. Delete it in the Add and Remove Programs in the control panel
2. Delete the my.ini file under the MySQL folder (under the installation folder). If the backup is good, you can directly delete all the folders
3. Start->Run-> ; regedit Check whether these places in the registry have been deleted
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL Directory deletion
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\ Application\MySQL directory deletion
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL directory deletion (I did not find it when uninstalling, but after skipping it, the purpose of complete uninstallation was still achieved.)
4. This item is very critical
C:\Documents and Settings\All Users\Application Data\MySQL
There are also MySQL files here, which must be deleted
Note: The Application Data folder is hidden. You need to open the folder and select Menu Bar Tools → Folder Options → View → Hide Files and Folders. Select Show All Files and Folders and OK
Also You can use Computer Manager to uninstall, and then manually delete the MySQL files that have not been uninstalled
The following picture can delete the remaining files in the registry after the software is uninstalled
Restart OK! Install it again
Recommended tutorial:mysql video tutorial
The above is the detailed content of What should I do if mysql cannot be uninstalled and reinstalled?. For more information, please follow other related articles on the PHP Chinese website!