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';
$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';
2.
将wamp\apps\phpmyadmin3.4.9\config.inc.php
改好后重启wamp即可,个人建议使用第二种。第一种弹出框看着很不爽

本文指导如何通过修改PHPMyAdmin配置文件,从'config'方式转换为'HTTP'方式实现数据库密码保护,提升安全性。操作步骤包括编辑配置文件、修改密码设置并重启服务。建议采用'HTTP'方式,以避免弹出框干扰。
900

被折叠的 条评论
为什么被折叠?



