mac终端使用mysql,提示command not found

Mac终端中使用mysql报错

zsh: command not found: mysql

在这里插入图片描述

解决办法

终端输入

alias mysql=/applications/xampp/bin/mysql

以上办法只是临时使用,如果需要非临时使用,可以这样:

1.先进入bin目录
cd /usr/local/bin

2.监理映射
sudo ln -fs /applications/xampp/bin/mysql

测试:

在这里插入图片描述

结束。

猜你喜欢

转载自blog.csdn.net/weixin_35773751/article/details/128651226
今日推荐