UBB.Dev
Posted By: tree Start Up Commands - 08/08/2000 9:49 PM
This is a part MySQL and part linux question. When my server reboots which on occasion it needs to... the socket file for MySQL is purged (/tmp). I am looking for away to have the safe_mysqld fired up as part of the boot process. Does anyone have any ideas on this or where the files are I should edit?

Many thanks,

M.

Posted By: MattyJ Re: Start Up Commands - 08/14/2000 12:09 PM
find the file mysql.server and follow the instructions in it... I think it needs to go in your init.d folder.... (but that's off the top of my head... []/w3timages/icons/wink.gif[/])

Matt

Posted By: tree Re: Start Up Commands - 08/14/2000 3:12 PM
I found it! Just need to spend some time reading the man file for it and I will be off to the races. Thanks Matt!

Posted By: The Team Re: Start Up Commands - 08/26/2000 9:17 PM
I set up my rc.local with a command:

csh -cf '/etc/mysqld &'

the file contains:

#!/bin/sh

cd /usr/local/mysql
bin/safe_mysqld

This works well for me, my system uses SysVInit scripts, but I didn't feel like writing a SysV script for mySQL. This setup spawns a new shell and runs mysqld in it, instead of executing mySQL in the current shell (thus making it unusable).

© UBB.Developers