Check out example codes for "unable to start mysql server on mac". It will help you in understanding the concepts better.

Code Example 1

sudo /usr/local/mysql/support-files/mysql.server start

Learn ReactJs, React Native from akashmittal.com