Page 1 of 1

Batch files

Posted: Sat Jul 31, 2004 7:45 pm
by Sarrena
So, I'm writing loads of batch files to automate my life on teh server here, but I'm wondering about program shutdown commands like simply killing a process. How safe is that for a DB like mySQL? Does it shut it down properly or kill it outright? Hows about NWN server? Anyone know?

Posted: Sun Aug 01, 2004 3:20 am
by Manuel the White
You should have no problems doing a graceful shutdown from a batch file without killing pids.

If mysql is installed as a service use

Code: Select all

net stop mysql
otherwise use the mysqladmin utility

Code: Select all

c:\mysql\bin\mysqladmin --user=xxx --password=xxx shutdown