Matt,

I tried this and still no cigar.  The only difference that I could see was
that the mysql.server file location was different, i.e.
/usr/local/share/mysql/mysql.server, mine exists in
/usr/share/mysql/mysql.server. I altered the script to reflect this but
still the process does not start.  Also I noticed that there was already a
mysqld script in /etc/rc.d/init.d, I renamed and then created yours.
Thoughts/Ideas?

Thanks for the help!

DK



-----Original Message-----
From: Matthew Scarrow [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:32 PM
To: [EMAIL PROTECTED]; David Kramer
Subject: Re: Cant start server after reboot - Please Help!


Here's a small script to use for automaticly starting the mysqld demaon. Cut
and Past it into a file and call it mysqld then save it in the
/etc/rc.d/init.d directory. Upon reboot you should see that you mysql server
is up and running ( use ps -A as root and look for the mysqld pid's). As for
using mysqld start to start the server manualy won't work use safe_mysqld &
.

#!/bin/sh
# description: mysql
# chkconfig: 2345 99 00

case "$1" in
'start')
        /usr/local/share/mysql/mysql.server start
        touch /var/lock/subsys/mysqld
        ;;
'stop')
        /usr/local/share/mysql/mysql.server stop
        ;;
*)
        echo "Usage: $0 { start | stop }"
        ;;
esac
exit 0


---------- Original Message ----------------------------------
From: David Kramer <[EMAIL PROTECTED]>
Date:  Thu, 11 Jul 2002 09:45:51 -0700

>I tried to automate the starting and stopping of the mysql service upon
>reboot.  I created the two links for mysql.server to the associated rc.d
>directories(rc0.d and rc3.d).  I rebooted my RH 7.2 box and nothing
>happened.  The real kicker is that I cant even manually start mysqld
"mysqld
>start".  Im completely lost here, please help!
>
>Thanks,
>
>dK  
>
>David Kramer
>Reflect.com
>Direct: 415.369.4856
>Cell: 650.302.7889
>
>
>---------------------------------------------------------------------
>Before posting, please check:
>   http://www.mysql.com/manual.php   (the manual)
>   http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <[EMAIL PROTECTED]>
>To unsubscribe, e-mail
<[EMAIL PROTECTED]>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail
<[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to