Re: How to start mysql at boot time?

From: Bas Keur (bas.keur_at_dmrt.net)
Date: 06/16/05


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



Relevant Pages

  • Re: OT:MySQL, Php and passing config data...
    ... Sudo will ask for your password (I am assuming you are doing this from ... After it tells you that it has started mysql, ... I'm afraid that would bg the sudo command, ... the instructions in the MySQL package, in case at some point in the ...
    (comp.sys.mac.advocacy)
  • Re: OT:MySQL, Php and passing config data...
    ... that looks like a standard mysql install. ... Another way to check if mysql is running is to look for its process. ... Sudo will ask for your password (I am assuming you are doing this from ... I'm afraid that would bg the sudo command, ...
    (comp.sys.mac.advocacy)
  • Re: Scripts to start and stop services
    ... > I often need to start/stop sendmail, mysql, and apache at once. ... > tried making a script with this contents: ... Sudo is also helpful here of course. ...
    (Fedora)
  • Re: mysql problem
    ... if there hasn't been a mysql "root" password set then you must be UID/ EUID zero in order to connect as "root' on mysql. ... So to kill 2 birds with one stone, running "sudo mysql" does two things: ... Sets your UID/EUID to zero. ...
    (Ubuntu)
  • Re: Installing DBD::mysql on MacOSX 10.3.2 (panther)
    ... > might want an 'sudo' before that command. ... Whether I use the mySQL that came with 10.3.2 Server or the Fink ...
    (comp.lang.perl.modules)