Mysql command not found in OS X 10.7

前端 未结 15 2253
臣服心动
臣服心动 2020-12-02 04:06

I cant get my mysql to start on os x 10.7. It is located in /usr/local/mysql/bin/mysql

I get command not found when I type mysql --version

15条回答
  •  我在风中等你
    2020-12-02 04:12

    Maybe I'll help someone else. None of the above answers worked for Catalina. Finally, this solved the problem

    echo 'export PATH="/usr/local/opt/mysql@5.7/bin:$PATH"' >> /Users/$(whoami)/.bash_profile

    Of course, you have to change for the version of mysql you have installed

提交回复
热议问题