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