Mysql command not found in OS X 10.7

前端 未结 15 2256
臣服心动
臣服心动 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条回答
  •  猫巷女王i
    2020-12-02 04:26

    With MAMP

    1. Locate mysql usually at /Applications/MAMP/Library/bin/mysql
    2. sudo vi /etc/paths
    3. Add this path to file /Applications/MAMP/Library/bin
    4. :wq (Save and quit file)
    5. Close Terminal windows
    6. Reopen Terminal and type mysql and it should work

提交回复
热议问题