mysql 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
Example 3: mysqld restart
sudo /etc/init.d/mysql restart
Example 4: start stop mysql linux
service mysql start
service mysql stop
service mysql restart
Example 5: restart mysql server ubuntu
service mysqld restart
Example 6: restart mysql mac
alias mysqlstart='sudo /usr/local/mysql/support-files/mysql.server start'
alias mysqlstop='sudo /usr/local/mysql/support-files/mysql.server stop'