Command line : Auto-Restart My SQL

From: Solange Ezveff (se_at_friend.fr)
Date: 12/21/04


Date: 21 Dec 2004 08:24:18 -0800

Hi,

Cannot implement an auto-restart MySQL server script when this
database has failled.

I was kindly told by gentlemen to :
1. check if its running with /etc/init.d/mysql status
2. restart the process with : /etc/init.d/mysql start chkconfig
--level 345.

I will follow this direction, but I am sorry to disturb you, but I do
not know how to implement this.

In SSH : with a crontab + a certain script I do not know how to write
this, that would combine both lines.

Or In a stored file (like a get-certain app-event)stored somewhere at
an admin level that would conbine these two commands I do not know how
to write.

I really thank your advise.

Solange
http://www.jssgallery.org