[英]macOS: zsh: command not found: mysqldump
I hope, it's the right forum for this question.我希望,这是解决这个问题的正确论坛。 But since there exist a
mysqldump
tag I think so.但由于存在
mysqldump
标签,我认为是这样。
I'm using a Mac with macOS Catalina 10.15.7 (19H524).我正在使用带有 macOS Catalina 10.15.7 (19H524) 的 Mac。
Since I reinstalled Homebrew and therefore also deleted some folders, mysqldump
isn't working any more.由于我重新安装了 Homebrew,因此也删除了一些文件夹,
mysqldump
不再工作了。 I always get the following error message:我总是收到以下错误消息:
zsh: command not found: mysqldump
Is it possible that I removed mysqldump
by mistake?是否有可能我错误地删除了
mysqldump
? How can I make it working?我怎样才能让它工作?
I finally found the solution:我终于找到了解决方案:
First I detected the path of mysqldump
with the following command:首先,我使用以下命令检测到
mysqldump
的路径:
locate mysqldump
This gave me: /Applications/MAMP/Library/bin/mysqldump
这给了我:
/Applications/MAMP/Library/bin/mysqldump
Now, I can simply call /Applications/MAMP/Library/bin/mysqldump
instead of just mysqldump
in Terminal
.现在,我可以简单地调用
/Applications/MAMP/Library/bin/mysqldump
而不是Terminal
中的mysqldump
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.