Shabir Gilkar
Shabir Gilkar

Reputation: 423

Error #1045 Access Denied in PhpMyAdmin

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.

Upvotes: 7

Views: 24211

Answers (4)

Dinidu Hewage
Dinidu Hewage

Reputation: 2191

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';

Upvotes: 5

Dmitro
Dmitro

Reputation: 101

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

Upvotes: 10

CD_mmp
CD_mmp

Reputation: 21

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

Upvotes: 2

Ewan Heming
Ewan Heming

Reputation: 4648

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

Upvotes: 0

Related Questions