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