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

{ 1 comment… read it below or add one }

vijay bhatt September 18, 2014 at 6:12 am

first open your command propmt and then goto MySql’s bin . Then type mysqld and press enter . You server will be started.


Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: