#2002 - No connection could be made
Posted by: sambrody24 (---.twcny.res.rr.com)
Date: November 25, 2012 02:00PM

This is one of the few things I have not been able to figure out on my own.

I was humming along truly enjoying a local environment when windows asked to restart so it could configure updates for norton antivirus and adobe acrobat reader. As a responsible citizen of the web I said sure and restarted. When the computer started back up again my WAMP icon was yellow.

Now when I try to bring up phpadmin I get this message: #2002 - No connection could be made because the target machine actively refused it. The server is not responding (or the local server's socket is not correctly configured).

Local host works fine, nothing but apache and php on port 80
MYSQL had to be turned on, service did not start on its own for some reason
I can turn the service on but I will still get the #2002 message
The only thing on this database is concrete5

So far I have turned off the norton antivirus firewall hoping it might have been blocking access to the database but that is not it

Any help would be truly appreciated

-Sam

Update

I ran localhost/testmysql.php and got this response

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\testmysql.php on line 2
Call Stack
# Time Memory Function Location
1 0.0363 244224 {main}( ) ..\testmysql.php:0
2 0.0364 245080 mysql_connect ( ) ..\testmysql.php:2

( ! ) SCREAM: Error suppression ignored for
( ! ) Warning: mysql_connect(): php_network_getaddresses: getaddrinfo failed: No such host is known. in C:\wamp\www\testmysql.php on line 2
Call Stack
# Time Memory Function Location
1 0.0363 244224 {main}( ) ..\testmysql.php:0
2 0.0364 245080 mysql_connect ( ) ..\testmysql.php:2
Could not connect to MySQL: php_network_getaddresses: getaddrinfo failed: No such host is known.



Edited 2 time(s). Last edit at 01/15/2019 09:07AM by Otomatic.

Options: ReplyQuote
0 : php_network_getaddresses: getaddrinfo failed: No such host is known.
Posted by: ayvar20001 (---.hsd1.il.comcast.net)
Date: January 15, 2019 07:43AM

0 : php_network_getaddresses: getaddrinfo failed: No such host is known.

Options: ReplyQuote
Re: 0 : php_network_getaddresses: getaddrinfo failed: No such host is known.
Posted by: Otomatic (Moderator)
Date: January 15, 2019 09:06AM

Hi,

Please READ (and answer) BEFORE YOU ASK A QUESTION
If the MySQL service is not started, there is no point in trying to connect to a database, it will never work.

See also the errors (only ERRORS) in the log files and in the event observer.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.