3
# A simple startup script for mysqld_multi by Tim Smith and Jani Tolonen.
4
# This script assumes that my.cnf file exists either in /etc/my.cnf or
5
# /root/.my.cnf and has groups [mysqld_multi] and [mysqldN]. See the
6
# mysqld_multi documentation for detailed instructions.
8
# This script can be used as /etc/init.d/mysql.server
10
# Comments to support chkconfig on RedHat Linux
11
# chkconfig: 2345 64 36
12
# description: A very fast and reliable SQL database engine.
17
basedir=/usr/local/mysql
18
bindir=/usr/local/mysql/bin
20
if test -x $bindir/mysqld_multi
22
mysqld_multi="$bindir/mysqld_multi";
24
echo "Can't execute $bindir/mysqld_multi from dir $basedir";
30
"$mysqld_multi" start $2
33
"$mysqld_multi" stop $2
36
"$mysqld_multi" report $2
39
"$mysqld_multi" stop $2
40
"$mysqld_multi" start $2
43
echo "Usage: $0 {start|stop|report|restart}" >&2