command to restart mysql service in ubuntu code example
Example 1: mysqld restart
sudo /etc/init.d/mysql restart
Example 2: restart sql server ubuntu
service mysql restart
sudo /etc/init.d/mysql restart
service mysql restart