Re: How to start mysql at boot time?

From: André Gulliksen (andre.gulliksen_at_start.no)
Date: 06/15/05


Date: Wed, 15 Jun 2005 07:40:31 +0200

blixel@gmail.com wrote:
> I've read a bunch of messages on the topic but nothing seems
> definitive - and every post has a different way of doing it. (Though
> roughly the same concept.) What is the "official way" (if there is
> such a thing) for OpenBSD 3.7?

I don't know about "official" way, but my way is putting the following into
/etc/rc.local:

if [ X"${mysql}" != X"NO" -a -x /usr/local/share/mysql/mysql.server ] ; then
        echo -n " mysqld"; /usr/local/share/mysql/mysql.server start
        /bin/sleep 1
fi

Also, you will need to put a line with "mysql=YES" into /etc/rc.conf.local.

I'm still at 3.6, though, so you _may_ need a few modifications to get it
running under 3.7. But I doubt it.