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

Code Example 1

sudo service mysql restart

Code Example 2

service mysql restart

Code Example 3

service mysqld restart

Learn ReactJs, React Native from akashmittal.com