简体   繁体   English

如何在 MacOS 上卸载 Mysql Shell

[英]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. I've wrongly installed MySql Shell https://dev.mysql.com/doc/mysql-shell/8.0/en/ in my MacBook Pro. I've confused it from the standard mysql shell command.我已经将它与标准 mysql shell 命令混淆了。

Now, all works ok, but I doesn't need MySql Shell... so there is a way to uninstall MySql Shell from my MacOS?现在,一切正常,但我不需要 MySql Shell... 所以有一种方法可以从 Mac 卸载 MySql ZEA809B68C34CE4A6CE

cd /usr/local/bin cd /usr/local/bin

sudo rm -rf mysqlsh sudo rm -rf mysqlsh

cd..光盘..

sudo rm -rf mysql-shell sudo rm -rf mysql-shell

sudo rm -rf mysql-shell-8.0.20-macos10.15-x86-64bit/ sudo rm -rf mysql-shell-8.0.20-macos10.15-x86-64bit/

Then restart your command line and it would not recognize anymore the command mysqlsh.然后重新启动您的命令行,它将不再识别命令 mysqlsh。

I think this is because the global paths are loaded from the file /etc/paths and the executable is not anymore in the directories =).我认为这是因为全局路径是从文件 /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 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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM