Batch files
Batch files
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?
-
- Groundling
- Posts: 83
- Joined: Mon Nov 17, 2003 10:58 pm
You should have no problems doing a graceful shutdown from a batch file without killing pids.
If mysql is installed as a service use
otherwise use the mysqladmin utility
If mysql is installed as a service use
Code: Select all
net stop mysql
Code: Select all
c:\mysql\bin\mysqladmin --user=xxx --password=xxx shutdown
[img]http://www.avlis.org/AvlisDarkSig.php[/img]