The main reason for this error that the database password has not been set correctly. To solve this error first determine that MySQL server is running the check have you change the password recently. If yes then the reason for the error is the PHPMyAdmin console. To solve this error edit your config. Php file and set the password properly.
Linux based system:
For Linux based system this file is located as;
/etc/phpMyAdmin/config-db.php
OR
/etc/phpmyadmin/config-db.php
You can notice the difference between the above two directory paths. For Linux based the system the directory name are case sensitive while under windows operating system the directory names are not case sensitive. For windows operating system first you have to specify which server you are using WAMP or XAMPP. Mostly the configuration files are located under the phpMyAdmin but for XAMPP server the config file is located under the phpMyAdmin directory as;
/path/to/xampp/phpMyAdmin/config.inc.php.
Set the password:
So the password is set as;
$dbuser =’root’;
$dbpass = ‘password’;
$basepath=’’;
$dbname= ‘phpmyadmin’;
$dbserver =’’;
$dbport=’’;
$dbtype= ‘mysql’;
Check right password:
To check the right password for mysql at the command line login to mysql by using the following command
mysql –u phpmyadmin -p