Error #1045 Access Denied in PhpMyAdmin

Shabir Gilkar picture Shabir Gilkar · Mar 13, 2011 · Viewed 24k times · Source

Basically I changed the password of MySQL via CMD and after that when I tried to visit the phpmyadmin page it shows me Error #1045 Access Denied.

I would like to how to fix this problem. Thanks in advance.

Answer

Dmitro picture Dmitro · Jan 9, 2012

Go to phpMyAdmin folder (in my case it is C:\wamp\apps\phpmyadmin3.2.0.1). In the file config.inc.php change the line

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

to

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

Now the password will be asked on your first visit of the phpMyAdmin page