phpmyadmin access problem

All of a sudden I started to get the following error:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

whenever I tried to access to mysql database through phpmyadmin. I have been using it flawless for very long time.

I modified the following file:

/var/lib/phpmyadmin/config.inc.php

by changing

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

to

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

and everything is working fine now.

Advertisements