Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Startup and Shutdown mySQL on NT 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
In a batch program on my Windows NT server I need to shutdown then startup mySQL 4.0. I believe I am using mysqld-nt.exe.

What is the proper command and parameters to do this?

Thanks very much!
 
If you installed mysqld-nt as a service at installation time initially then


c:\net stop mysqld-nt


should stop the service and

c:\net start mysqld-nt


will restart it



I hope it helps


Bye

Qatqat The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
Apologies,

mysqld-nt is the name of the server running, not the service, which is simply called 'mysql' therefore


c:\net stop mysql

will stop the service and

c:\net start mysql will restart it.

If you are writing a batch you should set it to wait a few seconds for the services to stop and restart


Bye

Qatqat The reason why my girlfriend can read my thoughts is because mine are properly written! (G.Lepore)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top