mysql restart database code example
Example 1: mysqld restart
sudo /etc/init.d/mysql restart
Example 2: start stop mysql linux
service mysql start
service mysql stop
service mysql restart
sudo /etc/init.d/mysql restart
service mysql start
service mysql stop
service mysql restart