2012-11-09 49 views
1

我剛剛轉移到蘋果,我安裝了MAMP來替換我通常在Windows上使用的WAMP,但現在我顯然已經丟失了我的配置設置,並且我正在努力使用MAMP。關閉PhpMyAdmin自動登錄

首先,我真的想在1440秒的空閒時間後關閉PHPMyAdmin的自動註銷功能,我也不想每次都登錄。在wamp中,我只是將root密碼設置爲空,並在配置文件中將登錄名設置爲false。

我已經在線閱讀並嘗試了一些東西,但我似乎無法找到需要更改的文件。

任何幫助,將不勝感激。 在此先感謝!

回答

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'; 
+0

我將這個配置文件粘貼到哪裏? – nickcorin

+0

_phpmyadmin_目錄下的_config.inc.php_ –