码迷,mamicode.com
首页 > Web开发 > 详细

phpadmin 自动登录

时间:2018-06-11 17:14:01      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:type   端口   SQ   auth   用户名   自动登录   nbsp   size   config   

1.自动登录

在phpadmin文件中找到config.inc.php或者libraries/config.default.php;

config.inc.php中配置信息会覆盖libraries/config.default.php;

$cfg[‘Servers‘][$i][‘host‘] = ‘localhost‘;//服务器ip

$cfg[‘Servers‘][$i][‘auth_type‘] = ‘cookie‘;//账号密码登录
//$cfg[‘Servers‘][$i][‘auth_type‘] = ‘config‘;//自动登录

将$cfg[‘Servers‘][$i][‘port‘] = ‘‘;服务器的端口

$cfg[‘Servers‘][$i][‘user‘] = ‘用户名‘; // 设置的mysql用户名

$cfg[‘Servers‘][$i][‘password‘] = ‘密码‘; // 设置的mysql密码

2.允许访问远程服务器

libraries/config.default.php;中

//$cfg[‘AllowArbitraryServer‘] = false;
$cfg[‘AllowArbitraryServer‘] = true;

 

phpadmin 自动登录

标签:type   端口   SQ   auth   用户名   自动登录   nbsp   size   config   

原文地址:https://www.cnblogs.com/tjb0808/p/9167560.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!