开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜