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