[thelist] Can't get MySQL to run on Boot (was: Single install of PHP4, MySQL, Apache for Linux?)

Jeremy Ashcraft ashcraft at 13monkeys.com
Fri Dec 7 00:11:13 CST 2001


On Thu, 2001-12-06 at 18:57, Dave Preston wrote:
> > 1. what is the difference between mysql and mysql-server?
> I suspect that mysql (rpm I assume) is just the client tools, used to
> connect to the server itself. and MySQL-server is just the server
> itself.

correct
 
> > 2. What exactly does chkdonfig do? Where can I learn more about that, it
> > sounds like it is somewhat important.
> I believe that chkconfig is a redhat specific script for validating the
> format of init scripts.

chkconfig is a command line tool where you can specify what services you
want started at boot time.  

chkconfig --list

spits out a nice chart of what apps get started at the different
run-levels at boottime

You can also define what run-levels you want each prog to start under.  
example:

chkconfig --level 345 mysql on

tells the init script to run the mysql script in /etc/rc.d/init.d when
ever linux enter run level 3,4, or 5
 
> > 3. How powerfull is rc.local on Red Hat 7.2 and are there any
> > limitations in using it. Can I simply place a command such as
> > /path/mysql/safe_mysqld & in it and expect to run or do I really need to
> > go through the fancy chkconfig process? 
> rc.local is just a shell script that is executed immediately after the
> system has come up. It is run as root, so it is very powerful indeed,
> please be careful. 

I'd much rather use chkconfig to set run-level startups than to just
have it start all the time.  No need to start up some apps when booting
into single user mode(run level 1, you know how to do that, right? :) )

jeremy





More information about the thelist mailing list