使用以下命令
reg delete "HKEY_LOCAL_MACHINESYSTEMControlSet001serviceseventlogApplicationMySQL" /f
reg delete "HKEY_LOCAL_MACHINESYSTEMControlSet002ServiceseventlogApplicationMySQL" /f
reg delete "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplicationMySQL" /f
reg delete "HKEY_LOCAL_MACHINESYSTEMControlSet001servicesMySQL" /f
net stop mysql
sc delete mysql