phpMyAdmin访问被拒绝(原创)
更新:HHH   时间:2023-1-7


我的php环境是WAMP,并且以前已经配置妥当,已经使用一段时间。昨天我看到在phpMyAdmin里面的权限

下设置密码的文章,我就在权限下把原来的NO passwor(默认),修改为有password为1234,并且点击执

行按钮成功执行.但是后来我再次进入时,却提示
Probably reason of this is that you did not create configuration file. You might want to

use setup script to create one.

错误
MySQL 返回:

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

补充:我以前的链接库的密码就是1234,我现在想在登录phpMyAdmin主页时能提示输入密码,所以才进

行设置的。但是现在却不能进入啦。并且在dos下使用命令行也在在键入密码时提示错误。



解决办法:

把config.inc.php删除就可以,或者修改config.inc.php里的

$cfg['Servers'][$i]['controluser'] = '';
$cfg['Servers'][$i]['controlpass'] = '';

注释掉就会弹出来要求登陆。


返回web开发教程...