增加显示phpmyadmin登陆框 让phpmyadmin需要登录密码

您当前位置:首页 > 红讯频道 > 网络技术

  • 红软基地 推荐
  • 2012-07-25

  高版本的phpmyadmin配置文件是 config.default.php2lh红软基地

 2lh红软基地

  为了安全我们设置为在浏览器输入phpmyadmin地址后出现登陆框,这样即使别人知道地址也无法登陆[如图]2lh红软基地

增加显示phpmyadmin登陆框 让phpmyadmin需要登录密码2lh红软基地

 2lh红软基地

 2lh红软基地

  具体设置如下2lh红软基地

  1,2lh红软基地

  $cfg['Servers'][$i]['host'] = 'localhost'; //localhost为本地2lh红软基地

  $cfg['Servers'][$i]['port'] = ''; //如果使用默认端口可以不用设置2lh红软基地

  $cfg['Servers'][$i]['connect_type'] = 'tcp';2lh红软基地

  $cfg['Servers'][$i]['extension'] = 'mysql';2lh红软基地

 2lh红软基地

  2,2lh红软基地

  $cfg['Servers'][$i]['auth_type'] = 'cookie'; //设置为cookie则显示登陆框2lh红软基地

 2lh红软基地

  3,2lh红软基地

  $cfg['blowfish_secret'] = ''; //如果上一步设置为 cookie 这里修改修改为:2lh红软基地

  $cfg['blowfish_secret'] = 'http://www.rsdown.cn/'; //将这里修改为你自己需要的任意字符!2lh红软基地

来源:红讯频道

专题合集 | 手机游戏 | 最近更新 | 下载排行 | 提交软件 | 在线病毒扫描 | 联系我们 | 版权声明 | 网站地图
Copyright ©2006-2013 红软基地(www.rsdown.cn). 湘ICP备2024053236号-1