I installed xampp,but when I tried to run it I got an error as thus:
Error
MySQL said: Documentation
Open the config.inc.php
file in the WAMP
phpmyadmin
directory
Change the line ['Servers'][$i]['password'] = ''
to
$cfg['Servers'][$i]['password'] = 'your_mysql_root_password';
Clear browser cookies
Then Restart all services on WAMP
This worked for me.
NB: the password to use has to be the MySQL password.....
If you are using XAMPP rather than WAMP, the path you go to is:
C:\xampp\phpMyAdmin\config.inc.php
On OSX I had same difficult, but a figure out a solucition
open terminal
put 'cd /Applications/XAMPP/xamppfiles'
put 'sudo ./xampp security'
then put your root password and answer the questions
My.ini
from the file #password
and #bind-address="127.0.0.1"
are commented change the password to root and uncomment bind-address="127.0.0.1"
and from the file cds.php
change the
mysql_connect("localhost", "root", ""); to
mysql_connect("localhost", "root", "root");
Stop the Mysql services and try login again it got logged in.
I had this problem with a fresh install of wamp and using only default settings without setting any passwords. I found an incorrect default setting and I solved it by the following steps:
The problem seems to be that someone forgot to make the server and host match in the configuration files.
Try this:
config.inc.php
file in the phpmyadmin
directory $cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['password'] = 'your_password';
Reference