mysql5.7 and below
1. View mysql status
service mysql status
2. Stop mysql
service mysql stop
3. Start mysql
service mysql start
mysql8.0 and above
1. View mysql status
service mysqld status
2. Stop mysql
service mysqld stop
3. Start mysql
service mysqld start