sudo /etc/init.d/mysql start code example
Example 1: ubuntu restart mysql
sudo service mysql restart
Example 2: restart sql server ubuntu
service mysql restart
Example 3: stop mysql ubuntu
sudo stop mysql # The service must be running
sudo service mysql restart
service mysql restart
sudo stop mysql # The service must be running