Re: How to start mysql at boot time?
From: Bas Keur (bas.keur_at_dmrt.net)
Date: 06/16/05
- Next message: Dave Uhring: "Re: How to start mysql at boot time?"
- Previous message: Shane Almeida: "Re: Installing a base package post install"
- In reply to: blixel_at_gmail.com: "How to start mysql at boot time?"
- Next in thread: Dave Uhring: "Re: How to start mysql at boot time?"
- Reply: Dave Uhring: "Re: How to start mysql at boot time?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 16 Jun 2005 20:05:03 +0200
> Anyway - how do I configure mysql to start when I boot?
>
> 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?
$ ftp "ftp://ftp.openbsd.org/pub/OpenBSD/`uname -r`/packages/`uname -m`/"
ftp> mget mysql-*
$ sudo pkg_add mysql*
$ sudo vi /etc/rc.local
-- add this to /etc/rc.local --
### MySQL ###
if [ -x /usr/local/share/mysql/mysql.server ]; then
echo 'Starting MySQL'
/usr/local/share/mysql/mysql.server start >/dev/null 2>&1
fi
-- add this to /etc/rc.local --
Voila !
If this is the official way ?
It's my way, oh yes thats official around here :))
-Bas
- Next message: Dave Uhring: "Re: How to start mysql at boot time?"
- Previous message: Shane Almeida: "Re: Installing a base package post install"
- In reply to: blixel_at_gmail.com: "How to start mysql at boot time?"
- Next in thread: Dave Uhring: "Re: How to start mysql at boot time?"
- Reply: Dave Uhring: "Re: How to start mysql at boot time?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|