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.