1、停止mysql服务(win+R,输入:services.msc回车)
2、控制面板卸载MySQL
3、cmd下删除MySQL服务:sc delete MySQL
4、删除目录
(1) C:ProgramDataMySQL
5、删除注册表
(1)windows+R运行regedit
(2)HKEY_LOCAL_MACHINESYSTEMControlSet001ServicesEventlogApplicationMySQL
(3)HKEY_LOCAL_MACHINESYSTEMControlSet002ServicesEventlogApplicationMySQL
(4)HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesEventlogApplicationMySQL
6、重启电脑