如何卸载mysql服务器
时间: 2023-09-26 14:10:24 浏览: 164
回答: 要卸载MySQL服务器,可以按照以下步骤进行操作。首先,打开注册表编辑器,可以通过开始菜单栏搜索regedit进入注册表编辑器,或者在命令提示符(cmd)下输入regedit命令打开。然后,按照以下路径找到相关的MySQL文件夹并删除:\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\eventlog\Application\MySQL*和\HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\eventlog\Application\MySQL*。如果没有这些文件夹,可以直接忽略这一步骤。接下来,在命令提示符(cmd)中输入find / -name mysql命令查找相关文件,并使用以下代码删除相关文件:rm -rf /var/lib/selinux/targeted/active/modules/100/mysql、rm -rf /usr/share/selinux/targeted/default/active/modules/100/mysql和rm -rf /usr/share/bash-completion/completions/mysql。最后,在系统的搜索框中输入regedit打开注册表编辑器,按照以下路径找到相关的MySQL服务目录并删除:HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL服务、HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\MySQL服务、HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL服务、HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\MySQL服务、HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL服务和HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MySQL服务。最后,删除环境变量配置。这样就完成了MySQL服务器的卸载。\[1\]\[2\]\[3\]
#### 引用[.reference_title]
- *1* [卸载mysql服务器_彻底卸载MySQL服务](https://blog.csdn.net/weixin_44462773/article/details/120503191)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [腾讯云服务器完全卸载mysql](https://blog.csdn.net/weixin_45499781/article/details/127079599)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [手把手教你彻底卸载MySQL](https://blog.csdn.net/m0_64996150/article/details/123309705)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文