7

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.

KarSho
  • 5,478
  • 13
  • 41
  • 75
Shabir Gilkar
  • 323
  • 2
  • 7
  • 19

4 Answers4

10

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

musefan
  • 45,726
  • 20
  • 123
  • 171
Dmitro
  • 101
  • 1
  • 3
  • Thank you, this helped me a ton when I had a previous MySQL installation I wanted to use instead of the one bundled with WAMP. – Amarok Mar 28 '12 at 16:33
5

you have to change the database password value in C:\wamp\apps\phpmyadmin3.4.5\config.inc.php into your MySQL database password

ex:- $cfg['Servers'][$i]['password'] = 'yourMySQLpassword';

Dinidu Hewage
  • 1,977
  • 6
  • 39
  • 45
2

Simply, clear your cache and refresh the page. That should help you out!

CD_mmp
  • 21
  • 1
0

You might need to change the password in the PPHMyAdmin config-db.php file.

Ewan Heming
  • 4,468
  • 1
  • 19
  • 20