zsh: command not found: mysql

后端 未结 5 1551
说谎
说谎 2021-02-05 07:42

Trying to use MySQL for rails app and downloaded it from dev.mysql.com.

After successfully installing the package and seeing the option to start and stop the server from

5条回答
  •  梦毁少年i
    2021-02-05 08:12

    On the latest MacOs Catalina.I hava tried to do above to sole this problem;

    vi ~/.zshrc                                 // open the zsh config and edite
    
    export PATH=${PATH}:/usr/local/mysql/bin/   // to add these words
    
    source ~/.zshrc                            // make it work
    

    Reopen a teminal and run mysql -u root -p,input the password then you can login your mysql;

提交回复
热议问题