Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'safe_mysqld &' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
safe_mysqld &
Authored by: ascorbic on Apr 13, '01 05:58:22PM

Actually, you SHOULD use safe_mysqld, because it runs in the background, and will restart mysqld if it stops for any reason. Others have noted correctly that an & after a shell command will make it run in the background. This is how my script looks:

#!/bin/sh

. /etc/rc.common

##
# Start up mysql server
##

if [ "${SQLSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Starting MySQL server"
/usr/local/mysql/bin/safe_mysqld &
fi



[ Reply to This | # ]
safe_mysqld &
Authored by: Gwyrrdin on Apr 14, '01 03:27:39AM

Hello

Read mysql.server with pico and you'll find out that this script actually launches safe_mysqld.

Only in such a way that system boots up without any problems...
So I would recommend to use mysql.server start

regards

Gwyrrdin



[ Reply to This | # ]
safe_mysqld &
Authored by: ascorbic on Apr 14, '01 06:44:14AM

i stand corrected!



[ Reply to This | # ]