MAMP(MAC)终端MySql未找到命令(mysql command not found) 发表评论 2,747 viewsA+所属分类:SQL 想在终端使用mysql,发现输入登录信息: mysql -uroot -p 终端提示命令不存在:mysql command not found 解决方案 确认MAMP下的MySql的位置,默认在: /Applications/MAMP/Library/bin/mysql 2.使用软连接来创建环境变量 sudo ln -s /Applications/MAMP/Library/bin/mysql /usr/local/bin/mysql 亲测,已可正常使用。 赞 0 赏 分享