【问题标题】:MySQL Command not found after editing bash_profile编辑 bash_profile 后找不到 MySQL 命令
【发布时间】:2020-08-25 05:50:58
【问题描述】:

我在成功安装 mysql 后一直在尝试运行它。但一直说找不到命令。我在 .bash_profile 文件中添加了以下行: export PATH=${PATH}:/usr/local/mysql/

我的完整 .bash_profile 文件:

export PATH=${PATH}:/usr/local/mysql/
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/opt/anaconda3/etc/profile.d/conda.sh" ]; then
        . "/opt/anaconda3/etc/profile.d/conda.sh"
    else
        export PATH="/opt/anaconda3/bin:$PATH"

    fi
fi
unset __conda_setup
# <<< conda initialize <<<

【问题讨论】:

  • 应该是/usr/local/mysql/bin

标签: mysql macos terminal


【解决方案1】:

当我卸载并尝试重新安装时它终于起作用了(我怀疑我可能安装了旧版本的 mysql)

【讨论】:

    猜你喜欢
    • 2014-10-08
    • 2022-01-10
    • 1970-01-01
    • 1970-01-01
    • 2020-06-28
    相关资源
    最近更新 更多