Mysql command not found in OS X 10.7

前端 未结 15 2252
臣服心动
臣服心动 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:24

    Your PATH might not setup. Go to terminal and type:

    echo 'export PATH="/usr/local/mysql/bin:$PATH"' >> ~/.bash_profile

    Essentially, this allows you to access mysql from anywhere.

    Type cat .bash_profile to check the PATH has been setup.

    Check mysql version now: mysql --version

    If this still doesn't work, close the terminal and reopen. Check the version now, it should work. Good luck!

提交回复
热议问题