Check out example codes for "file /etc/init.d/mysql not exists". It will help you in understanding the concepts better.

Code Example 1

-- this saved my ass
service mysqld restart

Learn ReactJs, React Native from akashmittal.com