您的位置:首页 > 编程语言 > PHP开发

给phpMyAdmin修改root密码后出现访问被拒绝的问题的解决办法

2016-12-30 09:09 483 查看
在phpMyAdmin修改用户的密码其实是修改了MySQL里面用户的密码,但是phpMyAdmin这个站点本身用户的信息并没有更新。需要手动更新。

修改文件:C:\xampp\phpMyAdmin\config.inc.php,找到这一节:

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';


在password那一行加上密码就行了。其他地方都不用改。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐