Re: How to start mysql at boot time?

From: Shane Almeida (almeida.spam.is.evil_at_spam.is.evil.mindless.com)
Date: 06/15/05

  • Next message: Dave Uhring: "Re: How to start mysql at boot time?"
    Date: Wed, 15 Jun 2005 11:38:25 -0500
    
    

    On 15 Jun 2005 07:10:52 -0700, blixel@gmail.com wrote:
    > Thanks. That seems to work - though I don't entirely understand it.
    >
    > I understand that the first line is checking to make sure mysql.server
    > is executable and checking to make sure that mysql=YES in
    > /etc/rc.conf.local ... but how does it "know" what the value of mysql
    > is? The /etc/rc.local script doesn't seem to import /etc/rc.conf.local
    > ... I can only assume the values are read into memory during the boot
    > process and are stored globally until the boot process is finished?

    /etc/rc reads /etc/rc.conf which then reads /etc.rc.conf.local. After
    finishing the default stuff, /etc/rc runs /etc/rc.local. Because rc runs
    rc.local, rc.local inherits the same values in rc.conf and rc.conf.local.
    That's how mysql=YES gets to rc.local.

    > The second line is also unfamiliar to me. It looks like it's running
    > the script to start the mysql server and passing the user mysqld to the
    > script so that the script will run as that user. However, I don't have
    > a mysqld user in my /etc/passwd. There IS a _mysql user in
    > /etc/passwd. And when I run "ps aux | grep mysql", I can see that the
    > mysql server is running as _mysql (not as mysqld) - weird. I guess
    > echo -n " mysqld" is a parameter other than the user to run as.

    The echo just prints " mysqld" to the console during bootup. Next time
    you boot, look for something like "starting local services: mysql." The
    echo -n is what puts the string "mysql" there. The echo and the
    mysql.server start are separated by a ';' which means they are two
    independent commands.


  • Next message: Dave Uhring: "Re: How to start mysql at boot time?"

    Relevant Pages

    • Re: Any one followed "how to build a minimal linux system from source code" and succeded?
      ... > look at their boot scripts. ... That script, rc.sysinit is so big, but I will post it below. ... echo; echo ... # check for arguments passed from kernel ...
      (comp.os.linux.setup)
    • RE: Installing from USB Flash Drive
      ... Included below is my working script to populate a 1GB USB flash stick disk with the FreeBSD cd1 iso file. ... # Change system bios to boot from USB-dd and away you go. ... echo " " ...
      (freebsd-questions)
    • MYSQL table backups
      ... I am having a little bit of trouble backing up some mySQL tables. ... I know my mysql account has full privileges to all account information. ... Using the script below, it even prints out all the table names, ... echo "mySQL Backup Script" ...
      (comp.lang.php)
    • Re: Installing from USB Flash Drive
      ... Included below is my working script to populate a 1GB USB flash stick disk with the FreeBSD cd1 iso file. ... I can't seem to get the drive to boot. ...
      (freebsd-questions)
    • Re: Script Problem
      ... I have had a problem with MySQL ... echo "MySql Server is Restarted" fi ... The reason your script isn't doing what you want it to do is because you're ... if (please execute this command) ...
      (freebsd-questions)