I changed the root password to test and now I cannot login in phpMyAdmin page in XAMPP. I looked for help here and here which basically says changed config.inc.php
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.
all you have to do is stopping
mysqld.exe
from the task manager and restart the server (Xammp)
it may be another mysqld instance running and stoped it with:
sudo service mysql stop
Worked for me.
If you are facing this issue after changing password in phpmyadmin,
paste the old password (passwd before change) in xampp\phpMyAdmin\config.inc.php
:
$cfg['Servers'][$i]['password'] = '**old password here**';
Hope, it would work :)
Best Way is reinstall if you have xampp/wamp/mamp or in linux uninstall and reinstall phpmyadmin by using apt-get
I also had that problem and i did what hairul said:
then i restarted mysql on the xampp control panel and didn t work.
It only worked when i restarted my computer!!!!