ok this is a mysql data base sever that can controlled by Java [ download and see for your self].
stop.java
in that file
" Sever.setCommand("bin\\mysqladmin shutdown --user=root --password=123"); "
bin\\ <- path to the mysqladmin.exe
mysqladmin shutdown --user=root --password=123 <- command to pass.
can be downloaded from attachment or ->
http://www.mediafire.com/?a0db99y2r3kh0k7