1

I got this issue unknowingly and its been 3 days for now that this problem isn't resolved.

When I try to access phpMyAdmin it throws a MySQL error #2002. I thought it was the hosts file problem, so I've gone into it and uncommented the "127.0.0.1 localhost", this too doesn't work. Seen all the possible solutions over stackoverflow, done all the trial and error methods, gone through videos, no result. Even I re-installed WAMP thrice, at one stage I removed WAMP totally and installed XAMPP, it's the same result.

Checked the MySQL log file, nothing is in there. Checked the php configuration file, it's all perfect, nothing seems to be in trouble, even uninstalled skype and utorrent. Adding the screenshot for reference. Any suggestions before I format my hard drive would be greatly appreciated. Thanks in advance.

Screenshot for reference

roottraveller
  • 7,942
  • 7
  • 60
  • 65
Bhanu Prakash
  • 51
  • 1
  • 12
  • Possible duplicate of [error with wamp server error #2002 could not open phpMyAdmin](http://stackoverflow.com/questions/18268378/error-with-wamp-server-error-2002-could-not-open-phpmyadmin) – roottraveller Jan 02 '16 at 06:27
  • 1
    Sorry, may be the error number matches, but read the error, it doesn't match, although I have tried that solution too, it doesn't work. – Bhanu Prakash Jan 02 '16 at 06:32
  • which windows version? – Muhammad Muazzam Jan 02 '16 at 06:33
  • 1
    @BhanuPrakash Ah, the server socket error makes me think you are running on an OS that has IPv6 configured. click wampserver -> Apache -> httpd.conf Look forthe "Listen" command Change it from Listen 80 to Listen 0.0.0.0:80 This makes apache only listen on the IPV4 network and may solve your problem – roottraveller Jan 02 '16 at 06:34
  • @rkm_Hodor_king I opened the file, and it's like this by default ##Listen 12.34.56.78:80Listen 0.0.0.0:80Listen [::0]:80## Do I need to do anything more than that ? – Bhanu Prakash Jan 02 '16 at 06:37
  • @BhanuPrakash Have you changed it as I mentioned? – roottraveller Jan 02 '16 at 06:40
  • There is no change to be done there I think so, as you told its already there, if any changes manually i need to do, tell me, i'll do it. – Bhanu Prakash Jan 02 '16 at 06:57

1 Answers1

0

I am not so sure but try this,

You will find a file named "my.cnf" on the same partition you installed wampserver mostly for another server you installed before search for it and delete it...

You can also have a look at this. It have mentioned some useful way. Access Denied when opening phpMyAdmin

Community
  • 1
  • 1
roottraveller
  • 7,942
  • 7
  • 60
  • 65