SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.

2,164 views
Skip to first unread message

bill

unread,
Oct 18, 2012, 6:17:15 PM10/18/12
to redbe...@googlegroups.com
Hello everyone

 I have been working with Laravel with its red bean bundle. I am been experimenting with the NetBeans 7.3 beta IDE and it's support for the internal PHP 5.4 server.  I have been able to set it up by following the steps in the screen cast at http://netbeans.org/kb/docs/php/screencast-php54.html .

However I have gotten the following error when I run a previously normally working script:


SQLSTATE[HY000] [2002] No connection could be made because the target machine actively refused it.


 This is occurring at red bean.php line 612. Does anyone have any idea what the problem is here or how to resolve this. The project works normally with my regular localhost server.

Thanks in advance,

Bill

mfrijm

unread,
Oct 19, 2012, 3:23:09 PM10/19/12
to redbe...@googlegroups.com
No connection could be made because the target machine actively refused it.
Google give a ton of results on this message.

One of them:
"...the target machine actively refused it" means the server could be reached and responded within the timeout, but the specified port wasn't open. This can have several reasons, e.g. a local firewall blocking the connection. Are you sure the server is listening on the right IP/port?

Hope this helps


Op vrijdag 19 oktober 2012 00:17:16 UTC+2 schreef bill het volgende:

bill

unread,
Oct 23, 2012, 1:40:39 PM10/23/12
to redbe...@googlegroups.com
Hi mfrijm,

Thanks for looking at it. I did look at the google results but most of these involved complex fixes for things such as mysql sockets  so I was just looking for a quick fix. I tried local host, but it didn't work. I am going to shelve this for now and keep an eye on the internal web server for the future.

Regards,

Bill
Reply all
Reply to author
Forward
0 new messages