Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 May 2005 14:07:47 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Paul Keyes <paul_s_keyes@yahoo.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: starting mysql server automatically
Message-ID:  <20050509190747.GG38839@dan.emsphone.com>
In-Reply-To: <20050509185100.53324.qmail@web32105.mail.mud.yahoo.com>
References:  <20050509185100.53324.qmail@web32105.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 09), Paul Keyes said:
> I tried adding mysql_enable="YES" to /etc/rc.conf and
> rebooted but sockstat -4 | grep mysql showed nothing
> and mysql server wasn't running.
> 
> Some information about my system:
> 
> $uname -r
> 5.3-RELEASE
> 
> $pkg_info | grep mysql
> mysql-client-5.0.3_1 Multithreaded SQL database(client)
> mysql-server-5.0.3_1 Multithreaded SQL database(server)

Try building the mysql50-server and mysql50-client ports; they come
with FreeBSD-style startup scripts.  What you pasted looks like the
generic one shipped with the source distribution, and it doesn't look
like it got installed right:

> if test -z "$basedir"
> then
>   basedir=@prefix@
>   bindir=@bindir@
>   datadir=@localstatedir@
>   sbindir=@sbindir@
> else
>   bindir="$basedir/bin"
>   sbindir="$basedir/sbin"
> fi

The @xxx@ blocks should have been replaced with paths to
/usr/local/something .

-- 
	Dan Nelson
	dnelson@allantgroup.com



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