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


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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM