Date: Tue, 07 Jun 2005 12:04:29 +0300 From: Uzi Klein <uzi@bmby.com> To: Roger Grosswiler <roger@gwch.net> Cc: freebsd-stable@freebsd.org Subject: Re: mysqld_safe does not end after start of mysqld Message-ID: <42A5631D.3040705@bmby.com> In-Reply-To: <35460.62.2.21.164.1118130481.squirrel@www.gwch.net> References: <35460.62.2.21.164.1118130481.squirrel@www.gwch.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Roger Grosswiler wrote:
> hi,
>
> If i launch mysqld_safe, i expect it goes in background, but it doesn't.
> even statring /usr/local/bin/mysqld_safe& just puts out the pid.
>
> root@freebsd# /usr/local/bin/mysqld_safe&
> [1] 5433
> root@freebsd# Starting mysqld daemon with databases from /var/db/mysql
better use the rc script
/usr/local/etc/rc.d/mysql-server.sh (start|stop|...)
after adding the mysql vars into /etc/rc.conf:
mysql_enable="YES"
mysql_limits="YES" # (optional)
( see all in the rc script)
I have found that the pidfile variable in mysql-server.sh doesnt act as
expected when you use the stop command.
commenting that line solved the problem for me;
#pidfile="${mysql_dbdir}/`/bin/hostname`.pid"
>
> ...and that's all. usually, i expect it goes in background and i could
> close that shell. did i miss something? it's just a fresh install from
> ports, initing with mysql_install_db and mysql_create_system_tables.
>
> Thanks for any help
> Roger
>
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
>
--
Uzi Klein
Software Development Executive
B.M.B.Y Software Systems LTD.
http://www.bmby.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?42A5631D.3040705>
