Check out example codes for "restart sql server ubuntu". It will help you in understanding the concepts better.

Code Example 1

service mysql restart

Code Example 2

sudo service mysql restart

Learn ReactJs, React Native from akashmittal.com