[英]How to uninstall Mysql Shell on MacOS
I've wrongly installed MySql Shell https://dev.mysql.com/doc/mysql-shell/8.0/en/ in my MacBook Pro. 我已經將它與標准 mysql shell 命令混淆了。
現在,一切正常,但我不需要 MySql Shell... 所以有一種方法可以從 Mac 卸載 MySql ZEA809B68C34CE4A6CE
cd /usr/local/bin
sudo rm -rf mysqlsh
光盤..
sudo rm -rf mysql-shell
sudo rm -rf mysql-shell-8.0.20-macos10.15-x86-64bit/
然后重新啟動您的命令行,它將不再識別命令 mysqlsh。
我認為這是因為全局路徑是從文件 /etc/paths 加載的,並且可執行文件不再在目錄中 =)。
In addition to what Alex said above, I think it's important to 'forget' the package as well to remove the last trace of the shell from your system: sudo pkgutil --forget com.mysql.shell
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.