MySQL Startup Script
drewjenkinsjr at yahoo.com
Tue Mar 6 11:55:40 UTC 2007
It was adding mysql_enable="YES" to the rc.conf script that I lacked. Oops. Thank you all.
Now, for some reason I need to keep setting the environment to get MySQL to run:
setenv LD_LIBRARY_PATH /usr/local/lib/mysql/
Can I automate this by adding it to the myslq-server script?
----- Original Message ----
From: Gerard Seibert <gerard at seibercom.net>
To: freebsd-questions at freebsd.org
Sent: Tuesday, March 6, 2007 6:47:53 AM
Subject: Re: MySQL Startup Script
On Tue, 6 Mar 2007 18:24:39 +1030
Greg 'groggy' Lehey <grog at FreeBSD.org> wrote:
> On Monday, 5 March 2007 at 23:28:53 -0800, Drew Jenkins wrote:
> > I built MySQL 5.1 from port on FBSD 6.2. But it doesn't start up on
> > boot. There's a mysql-server script in /usr/local/etc/rc.d/ but if I
> > try and fire that up from the command line it doesn't start. What do
> > I need to do?
> You could start by saying how you invoked the script and what happened
> when you tried. You should see:
> # /usr/local/etc/rc.d/mysql-server start
> Starting mysql.
Have you bothered to place the proper directive in the '/etc/rc,conf'
Otherwise, if you want to start it from the command line sans that
statement, you will have to use:
Check out the mysql script in /usr/local/etc/rc.d for further details.
My mother loved children -- she would
have given anything if I had been one.
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
More information about the freebsd-ports