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

Code Example 1

mysql -u root -p

Learn ReactJs, React Native from akashmittal.com