关闭PhpMyAdmin Autologout

时间:2012-11-09 18:02:05

标签: phpmyadmin mamp

我刚刚搬到Apple,我安装了MAMP来取代我通常在Windows上使用的WAMP,但是现在我显然丢失了我的配置设置,而且我很难用MAMP来做。

首先我真的想在1440秒的空闲时间之后关闭PHPMyAdmin的自动登录,我也不想每次都登录。在wamp中,我只将root密码设置为空白,并在配置文件中将登录名设置为false。

我已经在网上阅读了一些内容,但我似乎无法找到需要更改的文件。

任何帮助将不胜感激。 提前谢谢!

1 个答案:

答案 0 :(得分:2)

您的配置文件需要此代码,它应解决您的两个问题。

$cfg['blowfish_secret'] = 'xampp'; 
$i = 0;
$i++;
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
相关问题