|
|
|
|
Joined: Jan 2000
Posts: 10
Power User
|
|
Power User
Joined: Jan 2000
Posts: 10 |
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.
|
|
|
|
|
Joined: May 1999
Posts: 241
Coder
|
|
Coder
Joined: May 1999
Posts: 241 |
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
|
|
|
|
|
Joined: Jan 2000
Posts: 10
Power User
|
|
Power User
Joined: Jan 2000
Posts: 10 |
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!
|
|
|
|
|
Joined: Aug 2000
Posts: 3,590 Likes: 1
Moderator
|
|
Moderator
Joined: Aug 2000
Posts: 3,590 Likes: 1 |
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).
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 808
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,955
Members13,824
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 1985
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 29
|
|
|
|
|
|