zsh: command not found: mysql

后端 未结 5 1621
说谎
说谎 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
    闹比i (楼主)
    2021-02-05 08:09

    You should try paste this line to your environment variables

    export PATH=${PATH}:/usr/local/mysql/bin/
    

    Then try restart your environment variables with the following command

    source ~/.zshrc              #If you use Oh-My-Zsh
    
    source ~/.bashrc             #If you use Default Bash
    

提交回复
热议问题