linux restart mysql 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: how to restart mysql in linux
## mariadb ##
systemctl start mariadb
## mysql
systemctl start mysqld
Example 4: restart mysql server ubuntu
service mysqld restart