mysql said: Cannot connect: invalid settings. xampp
The above code fixed problem for most of the ppl but I still could not login. Finally I found this (line#9 in the above code needs to be changed)
$cfg['Servers'][$i]['AllowNoPassword'] = true; <--- change this
$cfg['Servers'][$i]['AllowNoPassword'] = false; <--- to this fixed the problem.
Note: there are other areas in localhost where you have to change the password manually. For example in "CD Collection" example. The password is hard coded there rather than picking it up from config.inc.php.
$cfg['Servers'][$i]['host'] = '127.0.0.1:3307';
if u change port address
I have been confronted with the same problem, so I went to :
/xampp/phpmyadmin/config.inc.php
I pasted the password which I had enter earlier then I was able to access phpmyadmin again, there in the privileges tab/ edit/ I chose no password and go then it all came back to life :)
Also you can change the user to admin but your phpmyadmin would be in admin side and your other localhost website will not work either.
I also had the same problem and it tooks me several hours to figured out.
I just changed 'config' to 'cookie'
$cfg['Servers'][$i]['auth_type'] = 'config';