Batch files

Development for CoPaP
Post Reply
Sarrena
World Leader: Abyss404
Posts: 154
Joined: Tue Jun 15, 2004 7:38 pm
Contact:

Batch files

Post by Sarrena » Sat Jul 31, 2004 7:45 pm

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?

Manuel the White
Groundling
Posts: 83
Joined: Mon Nov 17, 2003 10:58 pm

Post by Manuel the White » Sun Aug 01, 2004 3:20 am

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 
[img]http://www.avlis.org/AvlisDarkSig.php[/img]

Post Reply