Check out example codes for "mamp mysql path mac". It will help you in understanding the concepts better.

Code Example 1

/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot

Learn ReactJs, React Native from akashmittal.com