Le 1 mars 07 à 20:46, Chris McKeever a écrit :

On 3/1/07, Brian Dunning <[EMAIL PROTECTED]> wrote:

Is there such a thing as a PHP script that I can put on a cron job to
run every minute and make a test query, and upon failure, restart the
service and maybe send an email to Rackspace support? I don't know
how you'd check that the query was refused due to too many

can't php report back what the error message is when it makes a
conenction?  test for the error, and go from there

if([EMAIL PROTECTED](...))
        echo "it's die !";


connections, and I also don't know how PHP would restart the MySQL
service.

you can give php permission to run a shell script that kicks off a
service restart

Exactly.
see exec or system call

--
Kévin Labécot
Analyste Programmeur
www.cv.labecot.fr



--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to