Article directory
Error reporting using mysql in the Mac terminal
zsh: command not found: mysql
Solution
terminal input
alias mysql=/applications/xampp/bin/mysql
The above method is only for temporary use. If you need non-temporary use, you can do this:
1.先进入bin目录
cd /usr/local/bin
2.监理映射
sudo ln -fs /applications/xampp/bin/mysql
test:
Finish.