Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 2003 15:03:50 -0500
From:      ScaryG <freymann@scaryg.shacknet.nu>
To:        "Xpression" <admin@atenas.cult.cu>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: MySQL question...
Message-ID:  <20031128150350.349f7f7f.freymann@scaryg.shacknet.nu>
In-Reply-To: <000501c3b5c6$41ac9f90$0901a8c0@bloodlust>
References:  <000501c3b5c6$41ac9f90$0901a8c0@bloodlust>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 28 Nov 2003 10:42:40 -0500
"Xpression" <admin@atenas.cult.cu> wrote:

|O|>        Hi list, I've installed mysql-4.0.16.tar.gz on a
|O|>FreeBSD-4.5 server, at least it compile, then I edit and
|O|>copy the my-medium.cnf file to /etc/my.cnf location...when I
|O|>reboot MySQL doesn't start...anyone running it ??? Or I have
|O|>to do some steps to make running it ???

 You have to create a file in your /usr/local/etc/rc.d directory that will
start (and stop) mysql.

 It needs to be 'chmod 755' (you could probably use chmod 700)

 And, it would likely contain something like this:

================= snip start==============
#!/bin/sh

case "$1" in
	start)
		if [ -x /usr/local/bin/safe_mysqld ]; then
			/usr/local/bin/safe_mysqld --user=mysql > /dev/null &
			echo -n ' mysqld'
		fi
		;;
	stop)
		/usr/bin/killall mysqld > /dev/null 2>&1 && echo -n ' mysqld'
		;;
	*)
		echo ""
		echo "Usage: `basename $0` { start | stop }"
		echo ""
		exit 64
		;;
esac
================ end snippet ====================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031128150350.349f7f7f.freymann>