After wampserver2.0 is installed in my win7, phpmyadmin has never been used. I didn't use the integrated environment at first. php, apache, and phpmyadmin are installed separately, after changing to wamp, phpmyadmin always reports an error #1045-Access denied for user 'root' @ 'localhost' (using password: NO). I found config. inc. php, but I found a file named config. inc. php also has a config. sample. inc. the php file does not have a line of code to change the password and user name, but I cannot change its file name to config. inc. php
I suspect that it was not uninstalled.
Cainiao is here. thank you for your guidance !!!!!
Reply to discussion (solution)
Change localhost to 127.0.0.1.
Libraries/config. default. php
About 187 rows
/**
* MySQL user
*
* @ Global string $ cfg ['servers'] [$ I] ['user']
*/
$ Cfg ['servers'] [$ I] ['user'] = 'root'; // enter the user name
/**
* MySQL password (only needed with 'config' auth_type)
*
* @ Global string $ cfg ['servers'] [$ I] ['password']
*/
$ Cfg ['servers'] [$ I] ['password'] = ''; // enter the password
If no password exists, modify the password (near line 1)
$ Cfg ['servers'] [$ I] ['nopassword'] = true; // The default value is false.