Re: How to start mysql at boot time?

blixel_at_gmail.com
Date: 06/15/05


Date: 15 Jun 2005 07:10:52 -0700

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?

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.



Relevant Pages

  • MySQL 4.0.18 server problem on FreeBSD 5.2-Current
    ... 040323 19:52:50 mysqld restarted ... 040323 19:52:50 InnoDB: Started ... I tried with linuxthreads-2.2.3_15 and linuxthreads-2.2.3_13 but mysql ... I even tried to downgrade mysql server to 4.0.17 but same error. ...
    (freebsd-current)
  • Finding ports and services
    ... Every time I try to start the MySQL server, I get an error that says: ... 050713 11:00:09 Do you already have another mysqld server ... occupying the default MySQL port ...
    (Fedora)
  • Re: Does apache stop a script mid execution ?
    ... If the user calls a time consuming script and then stops or refreshes ... How does it relate to e.g. a script performing a large mysql query? ... 2.b) how the connection is set up. ... the server stops the script execution. ...
    (comp.lang.php)
  • Re: Does apache stop a script mid execution ?
    ... If the user calls a time consuming script and then stops or refreshes ... the way the client is implemented in the php mysql extension and 2.b) how the connection is set up. ... the server stops the script execution. ...
    (comp.lang.php)
  • Re: Cyrus IMAP with pam_mysql?
    ... FreeBSD, but if you check the startup script, all the parameters are ... Default log directories are in the default data directory, ... Makefile for mysql) They are changed in the above script prior to ... imaps auth sufficient pam_unix.so ...
    (freebsd-questions)