Check out example codes for "start mysql server linux terminal". It will help you in understanding the concepts better.

Code Example 1

sudo /etc/init.d/mysql start
or 
systemctl start mysql.service

Learn ReactJs, React Native from akashmittal.com