No connection could be made because the target machine actively refused it

- - Latest reply:  Facebook - Nov 30, 2019 at 10:46 AM
Hi,
I program a small web site for my Golf Club www.vetsgolfvic.org.au
For years I have used VS.PHP 3.8 to write and test the PHP code on my home computer and have used WAMP and Notepad++ on a laptop in order to interact with a MySQL database.
Not following some Windows 10 updates I'm getting the above error message and despite several searches and attempts to modify the behaviour of Windows Firewall (which seems to be the vaguely understood cause of this problem) I cannot find away around this dilemma.
See more 

3 replies

Best answer
approved by David Webb on Dec 2, 2019
3
Thank you
Well considering no one can answer this, I will finish it.....

Go to your database management console. Open up the security settings on the db. Give the web service that is running the web application on your web server permissions to connect login and read the db.

Say "Thank you" 3

Glad we were able to help! Love us? Write us a review! Rate CCM

CCM 5673 users have said thank you to us this month

Respond to Facebook
Posts
7297
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
December 9, 2019
358
2
Thank you
Hi,

Have you tried to add the program and its ports to the firewall exceptions?
HelpiOS
Posts
7297
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
December 9, 2019
358 -
Also check if your internet connection doesn't use a proxy server. If this is the case, disable that connection.
> HelpiOS
Posts
7297
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
December 9, 2019
-
For what I'm doing in the testing everything is on my computer. So I don't understand why my internet connection would or would not be using a proxy server. If so how would I check?
HelpiOS
Posts
7297
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
December 9, 2019
358 > LaurieC -
Some servers cannot communicate properly, especially if you use a proxy server. Open the start menu and go to Settings > Network & Internet > Proxy.

Then enable Automatically detect settings and disable Use a proxy server.
Hi,
Thanks. I've done that and found the settings were as you advised.
Face800kCoder
Posts
8
Registration date
Sunday November 24, 2019
Status
Member
Last seen
November 26, 2019
-
and...
Respond to HelpiOS
Posts
8
Registration date
Sunday November 24, 2019
Status
Member
Last seen
November 26, 2019
0
Thank you
Now What?
I still get the same message when attempting to communicate with the MySQL database. As the settings were unchanged I di not really expect their to be a difference
Does the web server have permissions I to the database?
It is acting like it doesn't. That seems to be the purport of the error message. However, how do I check that? And how do I give it permission?
Respond to Face800kCoder