sudo systemctl mysqle start code example
Example 1: ubuntu restart mysql
sudo service mysql restart
Example 2: stop mysql ubuntu
sudo stop mysql # The service must be running
sudo service mysql restart
sudo stop mysql # The service must be running