Yan*_*hon 22 php mysql phpmyadmin autologin
我有Ubuntu,并安装了phpMyAdmin包(目前4:3.3.2-1).每30分钟,它会要求我输入我的用户名和密码,用于非活动会话超时.在早期版本的phpMyAdmin中,设置用户/通行证将完全跳过此登录表单并使会话无限期地保持打开状态.此安装位于开发计算机(封闭专用网络上的单个用户)上,我想禁用或绕过该登录表单,因此我不必再次实际输入用户/通行证.我试着摆弄配置文件(有3个,甚至不确定使用哪个)但似乎没有任何改变.
我已经按照这个主题:http://ubuntuforums.org/showthread.php?t = 743991将我带到了这个主题http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=499399但是关于如何解决这个问题没有明确的指示.
谢谢!
Svi*_*ack 48
打开config.inc.php我的debian instalation我可以找到它/usr/share/phpmyadmin/config.inc.php.更改auth_type并添加数组中的第一个元素,这样$cfg['Servers'][1]任何数据(如主机$cfg['Servers'][1]['host'])都需要进行身份验证.
编辑:
在第一个for语句之前添加以下行config.inc.php:
$cfg['Servers'][1]['auth_type'] = 'config';
$cfg['Servers'][1]['host'] = 'localhost'; //edit if you have db in the other host
$cfg['Servers'][1]['connect_type'] = 'tcp';
$cfg['Servers'][1]['compress'] = false;
$cfg['Servers'][1]['extension'] = 'mysql';
$cfg['Servers'][1]['user'] = 'root'; //edit this line
$cfg['Servers'][1]['password'] = ''; // edit this line
Run Code Online (Sandbox Code Playgroud)
kac*_*har 20
在Ubuntu安装上,配置文件位于 /etc/phpmyadmin/config.inc.php
将这些行添加/更正到文件:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
$cfg['Servers'][$i]['AllowRoot'] = TRUE;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
30482 次 |
| 最近记录: |