faqts : Computers : Databases : MySQL : Common Problems : Server Status

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 7 people (57%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

How to check server status from a Windows script and start it if needed

Apr 2nd, 2007 04:16
Cal Stover,


You can use the service controller. In a batch file put:

SC query MySQL | FIND "RUNNING"
IF errorlevel 1 (net start mysql)