MySql出现error:the security setting could not be applied

安装mysql时会出现

error:the security setting could not be applied
时,是因为mysql卸载不干净所致,这时应重新卸载。

1.先把mysql的服务关闭

2.卸载mysql

3.把mysql的安装文件夹删除

4.我的是win7系统,所以在C:\ProgramData删除mysql文件夹

5.清理以下注册表:

HKEY_LOCAL_MACHINE/SYSTEM/ControlSet001/Services/Eventlog/Applications/MySQL 
HKEY_LOCAL_MACHINE/SYSTEM/ControlSet002/Services/Eventlog/Applications/MySQL 
HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Eventlog/Applications/MySQL

然后无需重启,再次安装即可解决该问题。

你可能感兴趣的:(mysql)