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

Report
-
 Facebook -
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.

3 replies

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.
3
Thank you

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

CCM 4409 users have said thank you to us this month

Posts
7652
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
February 8, 2020
536
Hi,

Have you tried to add the program and its ports to the firewall exceptions?
HelpiOS
Posts
7652
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
February 8, 2020
536
Also check if your internet connection doesn't use a proxy server. If this is the case, disable that connection.
> HelpiOS
Posts
7652
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
February 8, 2020

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
7652
Registration date
Friday October 30, 2015
Status
Contributor
Last seen
February 8, 2020
536 > 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...
Posts
8
Registration date
Sunday November 24, 2019
Status
Member
Last seen
November 26, 2019

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?