Mysql command not found in OS X 10.7

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

    I have tried a lot of the suggestions on SO but this is the one that actually worked for me:

    sudo sh -c 'echo /usr/local/mysql/bin > /etc/paths.d/mysql'
    

    then you type

    mysql
    

    It will prompt you to enter your password.

提交回复
热议问题