zsh: command not found: mysql

后端 未结 5 1550
说谎
说谎 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:26

    On MacOs Catalina Open a terminal and run.

     sudo nano /etc/paths
    

    Added to end of file

    /usr/local/mysql/bin
    

    Save the changes and quit. Reloaded terminal. Open a new terminal and run.

     mysql -u root -p
    

    Its works for me.!!

提交回复
热议问题