#!/usr/local/bin/perl
# stop.cgi
# Stop the MySQL database server

require './mysql-lib.pl';
if ($config{'stop_cmd'}) {
	$out = &backquote_logged("$config{'stop_cmd'} 2>&1");
	}
else {
	$out = &backquote_logged("$config{'mysqladmin'} $authstr shutdown 2>&1");
	}
&error_setup($text{'stop_err'});
if ($?) {
	&error("<pre>$out</pre>");
	}
&webmin_log("stop");
&redirect("");

