mysql service restart code example
Example 1: ubuntu restart mysql
sudo service mysql restart
Example 2: start mysql server linux terminal
sudo /etc/init.d/mysql start
or
systemctl start mysql.service
sudo service mysql restart
sudo /etc/init.d/mysql start
or
systemctl start mysql.service