error 2002 (cant connect localhost)
Posted by: kristyanto (114.79.28.---)
Date: September 23, 2013 11:43AM

Please help me, I can connect to wamp but I cant access localhost. After I force to open phpmyadmin from wamp, error found. The error is :

MySQL said: Documentation
#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).

Pls help me, I have some project to do sad smiley, thank you..

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: RiggsFolly (---.as13285.net)
Date: September 23, 2013 11:45AM

What colour is your wampmanager icon? Thats the one in the system tray.

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: kristyanto (114.79.28.---)
Date: September 23, 2013 11:52AM

Green sad smiley

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: kristyanto (114.79.28.---)
Date: September 23, 2013 11:55AM

I can connect to wamp, but I cannot access localhost sad smiley. I already tried many solution but doesnt work sad smiley

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: RiggsFolly (---.as13285.net)
Date: September 23, 2013 11:56AM

Install TeamViewer and I will troubleshoot for you.

Install TV, then run it.

Do this before attempting a connection.

How to Configure Team Viewer so it does not require port 80 or 443

Run TV
Extras -> Options -> Advanced -> Press the Advanced Button -> Advanced Network Connections

Check the checkbox saying [ Dont use incomming port 80 (recommended for web servers only ) ]
Stop and restart TV.

Then
Send me a Private Message containing the TV ID and PASSWORD so I can connect.
Leave TV running as it will change the password each time you restart it.

I am on UK time (GMT+1) and am normally available 09:00 - 16:00 and sometimes later into the evening.

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: kristyanto (114.79.28.---)
Date: September 23, 2013 12:03PM

Thank you before, I am from Indonesia (GMT+7), I'll send you my id and pass smiling smiley now I can connect with you..



Edited 1 time(s). Last edit at 09/23/2013 12:23PM by kristyanto.

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: RiggsFolly (---.as13285.net)
Date: September 23, 2013 05:24PM

The issue was that there was only an IPV6 reference to localhost and no IPV4 reference to localhost in the hosts file.

Solution:

Change c:\windows\system32\drivers\etc\hosts
From
::1         localhost

to
127.0.0.1   localhost
::1         localhost

Now when localhost is used in the browser, windows knows that localhost is in fact ip address 127.0.0.1 (this machine) and Apache receives the request.

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: ralphsomma (---.nycmny.east.verizon.net)
Date: May 15, 2014 08:44PM

I have the same situation. WampServer is Green but attempt to phpMyAdmin results in following error:

MySQL said: Documentation

#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).

Please help.
Thanks

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: RiggsFolly (---.as13285.net)
Date: May 27, 2014 03:15PM

So did you try the solution above???

What did you try?
What are you running?

READ THIS BEFORE YOU ASK A QUESTION [forum.wampserver.com]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: Willie_Esco (---.etisalat.com.ng)
Date: August 31, 2015 11:54AM

i tried
From
::1 localhost

to
127.0.0.1 localhost
::1 localhost

but still didnt work

Options: ReplyQuote
Re: error 2002 (cant connect localhost)
Posted by: RiggsFolly (---.as43234.net)
Date: August 31, 2015 12:28PM

Read the and TELL US THE ANSWERS TO these questions [forum.wampserver.com]

Then try these 20 troubleshooting tips. [forum.wampserver.com]

If you still have a question, make sure you start your question with the answers to the questions in line 1

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.