starting mysql server automatically
Dan Nelson
dnelson at allantgroup.com
Mon May 9 12:07:48 PDT 2005
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 at allantgroup.com
More information about the freebsd-questions
mailing list