January 16, 2024

command not found: mysql

Environment


Steps

  1. Open Terminal and enter the command

    1
    vi ~/.zshrc
  2. Add the following contents inside and save

    1
    export PATH=${PATH}:/usr/local/mysql/bin/
  3. Source the .zshrc file to take effect

    1
    source ~/.zshrc
  4. Validate and login to mysql

    1
    2
    mysql --version
    mysql -u userName -p


References

About this Post

This post is written by Andy, licensed under CC BY-NC 4.0.

#MacOS#TroubleShooting