简体   繁体   中英

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.

I'm using a Mac with macOS Catalina 10.15.7 (19H524).

Since I reinstalled Homebrew and therefore also deleted some folders, mysqldump isn't working any more. I always get the following error message:

zsh: command not found: mysqldump

Is it possible that I removed mysqldump by mistake? How can I make it working?

I finally found the solution:

First I detected the path of mysqldump with the following command:

locate mysqldump

This gave me: /Applications/MAMP/Library/bin/mysqldump

Now, I can simply call /Applications/MAMP/Library/bin/mysqldump instead of just mysqldump in Terminal .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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