If you're getting "#2002 Cannot log in to the MySQL server" when logging in to phpmyadmin on mac os, try editing phpmyadmin/config.inc.php and change:
$cfg['Servers'][$i]['host'] = 'localhost';
to:
$cfg['Servers'][$i]['host'] = '127.0.0.1';
Did the trick for me (after spending 2 hours on it).
Thank you! I've spend nearly 1 hour too. Until happened to spot your post.
ReplyDeleteSure thing, I'm glad it helped
ReplyDeletethanks! you save my day
ReplyDeleteI appreciate your help. you save my time as well.
ReplyDeleteI search around web and only find yours work.
Thanks so much this worked
ReplyDeletei cant find editing phpmyadmin/config.inc.php so please tell me what the solution this problem exactly and i am using win7 os
ReplyDeleteHi Milind,
DeleteSorry I don't have the answer for this one, I've never actually tried to run it in a Windows environment. If you figure it out though I'd really appreciate you posting the solution here as I am sure someone else could benefit.
Thanks,
Ryan
This helped me as well! thank you very much
ReplyDeleteyou save my life
ReplyDeletehttps://srilankatravelhub.com/
ReplyDeleteYou can also SET SESSION and SET GLOBAL query, in case if you want to make a change while the MySQL is running. dbdesigner.net
ReplyDelete