Fix Access denied for user 'root'@'localhost' for phpMyAdmin Fix Access denied for user 'root'@'localhost' for phpMyAdmin php php

Fix Access denied for user 'root'@'localhost' for phpMyAdmin


Find config.inc file under C:\wamp\apps\phpmyadmin3.5.1Inside this file find this one line

$cfg['Servers'][$i]['password'] =";

and replace it with

$cfg['Servers'][$i]['password'] = 'Type your root password here';


I had the same problem after i had changed the passwords in the database.. what i did wasthe editing of the updated password i had changed earlier and i didn't update in the config.inc.php and the same usernameunder D:\xamp\phpMyAdmin\config.inc

$cfg['Servers'][$i]['auth_type'] = 'config';$cfg['Servers'][$i]['user'] = **'root'**;$cfg['Servers'][$i]['password'] = **'epufhy**';$cfg['Servers'][$i]['extension'] = 'mysqli';$cfg['Servers'][$i]['AllowNoPassword'] = true;$cfg['Lang'] = '';


After I change the password for my "root" in phpMyAdmin page, I had a same problem and also looking for the solutions from the internet but fail to get the answer I needed, so I check the documentation inside the phpMyAdmin directory.

Go to and edit the file

\modules\phpmyadmin414x140123114237\config.sample.inc.php

look for line

$cfg['Servers'][$i]['auth_type'] = 'config'

and change the 'config' to 'http' and that will allow you to type the user name and password when you go to your phpMyAdmin page using your browser.

OR

see the documentation file under the same phpMyAdmin directory (phpmyadmin414x140123114237\doc\html) for help and search for $cfg['Servers'][$i]['auth_type'] and you will see 4 options to choose from as to how to login to your phpMyAdmin page.