Launch from Start menu or by typing this at a command/Powershell prompt...
services.msc
msconfig
Get-Service
Get-Service -ComputerName myServer
Get-Service -Name SQLSERVERAGENT -RequiredServices
Get-Service -Name MSSQLSERVER -DependentServices
Lists Name and Display Name of all Services and their current Status
As above for a specified Computer
Lists other Services that the named Service is dependent on
Lists other Services that depend on the named Service
Get-Service -Name *MySQL*
Get-Service -DisplayName *MySQL*
sc queryex | find "SERVICE_NAME" | find "MySQL"
sc queryex MySQLRouter
reg query HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\mysqlrouter
sc qc mysqlrouter
This can be done via the GUI or...
Start-Service -Name MSSQLSERVER
Restart-Service -Name MSSQLSERVER -Force
The -force flag is required because SQLSERVERAGENT is a dependent of MSSQLSERVERRestart-Service -Name SQLSERVERAGENT
Stop-Service -Name MSSQLSERVER
Stop-Service -Name *SQL*
Find your service name... You can do this by clicking Properties in the Services GUI or by using something based on the examples below...
sc queryex | find "SERVICE_NAME" | find "SQL"
Get-Service -Name *SQL*
PowershellFind the PID of the service...
sc queryex MSSQLSERVER
KIll the Service...
taskkill /pid 999 /f