Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 May 2005 14:03:45 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        paul_s_keyes@yahoo.ca (Paul Keyes)
Cc:        freebsd-questions@freebsd.org
Subject:   Re: starting mysql server automatically
Message-ID:  <200505061803.j46I3jon013709@clunix.cl.msu.edu>
In-Reply-To: <20050506175218.40330.qmail@web32107.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> Hi All,
> 
> I'm setting up a server running Freebsd 5.3  I have
> mysql running well but I can't seem to get it to start
> automatically at boot time.  I can only start it as
> root with the command:
> mysqld_safe --user=mysql &
> 
> (when I do this everything works fine)
> 
> I tried installing the mysql.server sript as:
> /usr/local/etc/rc.d/mysql.server.sh 
> but when I try to run it manually I get this:
> ./mysql.server.sh: 102: Syntax error: Bad for loop
> variable
> 
> What is the best way to get the mysql server running
> automatically when the computer boots?

Well, you probably will have to fix the for loop problem

You may have to set a variable in your rc.conf or earlier in
the mysql.server.sh.    Usually that script works just fine
so, either something got changed, something is in a differnt
than usual place or some value didn't get set where it needs to be.
It is hard to guess without seeing stuff and tinking with it.

Probably there is only one for loop, so take a look at it and see
what variable it is trying to use.  Put some echo's in the startup 
script to find out where it is barfing if you need.   

////jerry

> 
> Thanks,
> Paul
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505061803.j46I3jon013709>