The mac terminal uses mysql, prompting command not found

Error reporting using mysql in the Mac terminal

zsh: command not found: mysql

insert image description here

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:

insert image description here

Finish.

Guess you like

Origin blog.csdn.net/weixin_35773751/article/details/128651226