MySQL question...
ScaryG
freymann at scaryg.shacknet.nu
Fri Nov 28 12:04:06 PST 2003
On Fri, 28 Nov 2003 10:42:40 -0500
"Xpression" <admin at 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 ====================
More information about the freebsd-questions
mailing list