打开config.inc.php,找到类似
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?的一行,我的版本是2.40,在73行config是不用验证直接访问,http及cookie均要求先通过验证
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?的一行,我的版本是2.40,在73行config是不用验证直接访问,http及cookie均要求先通过验证
$cfgServers[1]['host'] = 'localhost'; (系统默认主机名为localhost,不需要更改)
$cfgServers[1]['user'] = '数据库管理员名';
$cfgServers[1]['password'] = '密码';
$cfgServers[1]['only_db'] = '数据库(数据库管理员名_db)';
修改完成后,保存config.inc.php文件; 修改配置文件后,将phpadmin目录及其目录下的所有文件,通过ftp上传到客户网站的htdocs目录下; 在浏览器中键入‘http://您的域名/phpadmin’即可管理和创建客户的MySQL数据库。
另外,也可以设置 phpadmin文件的页面保护(权限),这样便可以与数据库密码分开使用,以防泄密