Mysql command not found in OS X 10.7

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

    If you installed MySQL Server and you still get

    mysql -u root -p command not found
    

    You're most likely experiencing this because you have an older mac version.

    Try this:

    in the home directory in terminal open -t .bash_profile

    paste export PATH=${PATH}:/usr/local/mysql/bin/ inside and save it

    instead of writing mysql -uroot -p paste the following in your terminal:

    /usr/local/mysql/bin/mysql -uroot -p 
    

    Enter your password. Now you're in.

提交回复
热议问题