Andrew Kuebler wrote:
I'm running FreeBSD and MySQL version 4.1. How do I get FreeBSD to load
MySQL on boot? I don't see a script file that came with the installation.

Thank you.

Andrew



Place a script called mysql-server.sh in /usr/local/etc/rc.d

#!/bin/sh

case "$1" in
start)
   /usr/local/server/mysql/bin/mysqld_safe --old-passwords &
   ;;
stop)
   /usr/bin/killall -TERM mysqld
   /usr/bin/killall -TERM mysqld_safe
   ;;
*)
   echo "Usage: `basename $0` (start|stop)">&2
   ;;
esac

exit 0


And make a corresponding entry in /etc/rc.conf:

mysql_enable="YES"

--
Erich Beyrent
--------------------------
http://www.beyrent.net

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to