The connection has been disabled MYSQL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

The connection has been disabled MYSQL

Post 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
anand
Forum Commoner
Posts: 80
Joined: Fri May 22, 2009 11:07 am
Location: India
Contact:

Re: The connection has been disabled MYSQL

Post 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?
Post Reply