Page 1 of 1

The connection has been disabled MYSQL

Posted: Thu May 28, 2009 5:18 am
by phpcoder
Hi,
I got PHP script that is running as corn(schedule) job, but most of the time I get the exception in MYsql connection :
The connection has been disabled.
In my script I am checking the connection state before exceuting any query through PHP, still I am getting this exception after one or two day.

Is there anyway I can avoid this problem.
Thanks

Re: The connection has been disabled MYSQL

Posted: Thu May 28, 2009 9:38 am
by anand
phpcoder wrote:Hi,
I got PHP script that is running as corn(schedule) job, but most of the time I get the exception in MYsql connection :
The connection has been disabled.
In my script I am checking the connection state before exceuting any query through PHP, still I am getting this exception after one or two day.

Is there anyway I can avoid this problem.
Thanks
can you show us the cron command?