Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2005 11:34:17 -0500
From:      "Andrew L. Gould" <algould@datawok.com>
To:        "Mick Wilcoxen" <wwilcoxen@sbcglobal.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: start up command for mysql
Message-ID:  <20050819113417.406218b6@grokwell.org>
In-Reply-To: <000001c5a4d9$2e61ff80$6700a8c0@Zippy>
References:  <20050819104929.1bc1a0d5@grokwell.org> <000001c5a4d9$2e61ff80$6700a8c0@Zippy>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 19 Aug 2005 09:15:08 -0700
"Mick Wilcoxen" <wwilcoxen@sbcglobal.net> wrote:

> Hi Andrew,
> 
> Found it. But the command is different from the command that
> The person who created the database gave. Should I change it to mach
> his command 
> 
> The command there is 
> 
> Start)
> 	/sbin/idcongif -m /usr/local/lib/mysql
> 	;;
> Stop)
> 	;;
> *)
> 	echo ""
> 	echo " Usage: 'basename $0' {start | stop} "
> 	echo ""
> 	exit 64
> 	;;
> Esac
> 
> He is telling me to put this command in the startup
> 
> /usr/local/mysql/bin/safe_mysqld &.
> 
> Run this with the period at the end.put it in your start up script.
> 
> The database program.(the first of many  I have written) is based on
> PHP/Mysql
> 
> ***********************************************************
> Mick Wilcoxen
> (530)933-2882

The script you found does not start MySQL.  It just ensures that the
operating system can find the MySQL libraries.

The command you mention above starts MySQL; and can be added to the
"Start" section of the script. I've never put a period after the
ampersand; so I don't know what that will do.  (I switched from MySQL
to PostgreSQL over 5 years ago.)

The reason it would be good to find the script that is installed by the
port is that it probably has a "stop" section for shutting down MySQL
cleanly and removing the pid file when the operating system is being
shutdown.

Good luck,

Andrew Gould



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