关于php集成环境mysql wamp 修改密码后phpMyAdmin拒绝访问解决办法

来源:互联网 发布:知乎大家都用真名吗 编辑:程序博客网 时间:2024/05/17 16:54
1. 将wamp\apps\phpmyadmin3.4.9\config.inc.php 
   $cfg['Servers'][$i]['auth_type'] = 'config'; 
   $cfg['Servers'][$i]['password'] = '';

   修改为
   $cfg['Servers'][$i]['auth_type'] = 'http'; 
   $cfg['Servers'][$i]['password'] = 'your_passwd';

2.将wamp\apps\phpmyadmin3.4.9\config.inc.php  
   $cfg['Servers'][$i]['password'] = '';
   修改为
   $cfg['Servers'][$i]['password'] = 'your_passwd';
   然后将wamp\apps\phpmyadmin3.4.9\libraries\config.default.php
   $cfg['Servers'][$i]['password'] = ''; (大概在200行左右)
   修改为
   $cfg['Servers'][$i]['password'] = 'your_passwd';

改好后重启wamp即可,个人建议使用第二种。第一种弹出框看着很不爽
1 0
原创粉丝点击