Windows环境下,完全清理mysql:
1.控制面板程序先卸载一遍;
2.安装目录删掉
3.清理注册表(以上两步没有清理完再使用该步骤):(看到mysql文件夹或者相关的都删掉就行)(清理完后记得重启)
win+r运行:regedit
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL
HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl001\Services\MYSQL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl002\Services\MYSQL
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSQL
4.查看服务里面没有mysql服务,表示已经清理干净: