首页 > Web开发 > 详细

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

时间:2016-12-30 10:17:08      阅读:257      评论:0      收藏:0      [点我收藏+]

在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那一行加上密码就行了。其他地方都不用改。

 

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

原文:http://www.cnblogs.com/ingvar/p/6235591.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!