[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] RE: mysql Not Connecting



Jonathan Alstead <domains@xxxxxxxxxxxxxxxx> wrote:
> > You can save the mysql startup script that was created when you installed
> mysql into
> /etc/rc.d/init.d/mysql and then add a line in /etc/rc.d/rc.local to run it
> when the
> server starts .....
>
> I would like mysql to startup as the server starts, but am a bit wary as the
> rc.local script is a little above me. Do I refer to the script by adding?
>
> /etc/rc.d/init.d/mysql

Just add the following three lines to the bottom of /etc/rc.d/rc.local.  Obviously,
the first two aren't necessary, but will come in handy months from now when you're
trying to figure out what customization you've done to a particular file.

# Custom addition by Jonathon Alstead 2000-06-28
# Script below runs mysql when server starts
/etc/rc.d/init.d/mysql start

If you don't have the mysql script above, you can substitute the following:

/usr/sbin/mysqld --log=/var/log/mysql_log --log-update=/var/log/mysql_log_update

Your 'mysqld' may be in another location so "locate mysqld" to find it.  The two log
options create MySQL logs of queries and other MySQL activity and I highly recommend
that you implement them, especially if you're new to MySQL.  You can probably add the
options somewhere within the mysql start script (/etc/rc.d/init.d/mysql), but i don't
recall where so consult the MySQL site if you need help.

Steven Werby {steven-lists@xxxxxxxxxxxx}