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