Check out example codes for "how to run mysql on terminal mac". It will help you in understanding the concepts better.

Code Example 1

sudo sh -c 'echo /usr/local/mysql/bin > /etc/paths.d/mysql'

Learn ReactJs, React Native from akashmittal.com