Start / Stop / Enable / Disable mysql service

by admin on June 2, 2011

We can start MySQL service from windows command line using the below command.

net start mysql

Command to stop MySql service:

net stop mysql

Disable MySql service:

sc config mysql start= disabled

Command to enable MySql service(to automatically start MySQL service when the system starts up):

sc config mysql start= auto

Command to set the startup type to manual:

sc config mysql start= manual

How to restart MySql service?
There is no direct command to restart a service. You can combine stop and start commands like below.

net stop mysql & net start mysql

Related Posts:

How to connect to MySQL server from windows command line
How to install Mysql in Windows 7

{ 0 comments… add one now }

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: