PHP Remote MySQL problems
Like 2-3 months ago i set up a cronjob to run a php-script ever minute. This PHP-script simply queried a remote MySQL database of mine, and emailed me if any updates.
This worked fine up until about a week ago. I stopped receiving the email and found that the PHP-script wasn't able to connect anymore.
I am able to run the exact same script from other servers.
Warn开发者_运维知识库ing: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '***removed***' (4) in /home/somefolder/public_html/somefolder/cronjob.php on line 4
What could the problem be?
You're server might have blocked the outgoing connection because it was using bandwidth every minute(not much, I know..). You should contact your server manager, to check if this is true.
精彩评论