restart sql server service command line code example Example: restart sql server command line linux service mysql start service mysql stop service mysql restart