starting MySQL on boot?

starting MySQL on boot?

Post by Tobias DiPasqual » Tue, 23 Apr 2002 09:30:02



Hi all,

        This is probably a simple question, but how would I arrange for MySQL to
be started at boottime? The docs for the rc scripts were not that helpful
to me, or maybe I just missed something... TIA!

--toby--

 
 
 

starting MySQL on boot?

Post by Axel Grune » Tue, 23 Apr 2002 14:46:20


On Sun, 21 Apr 2002 19:30:02 -0500

Quote:>    This is probably a simple question, but how would I arrange for
>    MySQL to be started at boottime? The docs for the rc scripts
>    were not that helpful to me, or maybe I just missed something...
>    TIA!

Take a look at --> man rc
Look for example.

asg

 
 
 

starting MySQL on boot?

Post by Andre Vente » Tue, 23 Apr 2002 17:57:09


put the following script (mysql.sh) in /usr/local/etc/rc.d
---------

#!/bin/sh

case "$1" in
        start)
                if [ -x /usr/local/mysql/bin/safe_mysqld ]; then
                        /usr/local/mysql/bin/safe_mysqld --user=mysql >
/dev/null & && echo -n ' mysqld'
                fi
                ;;
        stop)
                /usr/bin/killall mysqld > /dev/null 2>&1 && echo -n '
mysqld'
                ;;
        *)
                echo ""
                echo "Usage: `basename $0` { start | stop }"
                echo ""
                exit 64
                ;;
esac


Quote:> Hi all,

> This is probably a simple question, but how would I arrange for MySQL to
> be started at boottime? The docs for the rc scripts were not that helpful
> to me, or maybe I just missed something... TIA!

> --toby--

 
 
 

1. start mysql database as mysql instead of root

Hi
having trouble with mysql
i can only start the server as root
when i use adduser interactivly to create mysql
i use /usr/bin/false as the shell
but i am not sure about the password
or if  i need a home directory for the mysql user
what adduser command do i use to
create an unprivilidge user (mysql)
for the mysql server to run as.

shadrock

2. Closed captioning source

3. starting apache and mysql at boot

4. Firewire drive crashes

5. kde wont start on boot, will start on reboot

6. strange network problem

7. RH9: I need to start ADSL-START as root for the first time after boot ....

8. Newbie: Accessing dir. only work when including trailing "/"

9. "Starting lpd..." failure at boot/start-up

10. X-server unable to get started - but it's set to start on boot!

11. Can subsystem start with startsrc be started at boot time?

12. problems starting mysql

13. Starting MySQL Server in RH 7.2