#2002 - The server is not responding (or the local MySQL server's socket is not correctly configured)
while configuring phpMyAdmin
Solution
changed
$cfg['Servers'][$i]['host'] = 'localhost';
to
$cfg['Servers'][$i]['host'] = '127.0.0.1';
in config.inc.php
NOTE: you may need to change php.ini also if your web application database connections are broken too
check this article : http://techtrouts.com/mac-mysql-does-not-connect-on-localhost-but-connects-on-127001/
Tweet
C:\xampp\phpMyAdmin
ReplyDeleteand the file name in the latest version is config.sample.inc.php
change localhost to ip address
it works!!!!
thanks so much
Last 2/3 days I tried but not find any solution.
ReplyDeleteYour very simple solution very very good.
Lots of thanks
Jaheed
try this one: add this line to config file $cfg['Servers'][$i]['connect_type'] = 'tcp'; but not lucky.
ReplyDeleteYour method worked for me
hatur nuhun gan. . works euy . . :D hehe
ReplyDeleteI had this problem too but after sometime $cfg['Servers'][$i]['host'] = '127.0.0.1'; was missing, so I just added it with 127.0.0.1 no localhost, and it worked. Thank You!
ReplyDeleteSorry Your method not work.
ReplyDeletefor my issue is "
MySQL said: Documentation
#2002 - Connection refused
The server is not responding (or the local server's socket is not correctly configured).
Error
MySQL said: Documentation
#2002 - Connection refused
The server is not responding (or the local server's socket is not correctly configured).
Connection for controluser as defined in your configuration failed.
same here ramnarayan if u get the answer then plz send me.. i want it urgently plz..
Deletethanksss a lotttt its works perefct
ReplyDeleteperfect ***
Deletehttp://sakafi.wordpress.com/2009/03/14/2002-the-server-is-not-responding-or-local-mysql-servers-socket-is-not-correctly-configured/#comment-2777
ReplyDeleteamaaaizing work perfectly
ReplyDelete