Date: Sat, 7 May 2005 16:33:45 +0100 From: Chris Hodgins <christopher.hodgins@gmail.com> To: Paul Keyes <paul_s_keyes@yahoo.ca> Cc: freebsd-questions@freebsd.org Subject: Re: starting mysql server automatically Message-ID: <63c3899e0505070833315cf7c1@mail.gmail.com> In-Reply-To: <20050506175218.40330.qmail@web32107.mail.mud.yahoo.com> References: <20050506175218.40330.qmail@web32107.mail.mud.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 5/6/05, Paul Keyes <paul_s_keyes@yahoo.ca> wrote: > Hi All, >=20 > 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=3Dmysql & >=20 > (when I do this everything works fine) >=20 > 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 >=20 > What is the best way to get the mysql server running > automatically when the computer boots? >=20 > Thanks, > Paul >=20 Make sure this line appears in /etc/rc.conf: mysql_enable=3D"YES" Then reboot and you should be able to see it in sockstat: $ sockstat -4 | grep mysql mysql mysqld 529 3 tcp4 *:3306 *:* If that still does not work then you might want to post you mysql-server.sh file so we can see if you have any obvious problems with it. Chris
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?63c3899e0505070833315cf7c1>