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