Check out example codes for "zsh: command not found: mysql mamp". It will help you in understanding the concepts better.

Code Example 1

Add mysql path to executable path
# echo 'export
PATH=$PATH:/Applications/MAMP/Library/bin' >> ~/.bash_profile

Learn ReactJs, React Native from akashmittal.com