欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

phpMyAdmin自動(dòng)登錄和取消自動(dòng)登錄的配置方法

 更新時(shí)間:2014年05月12日 10:40:00   作者:  
這篇文章主要介紹了phpMyAdmin自動(dòng)登錄和取消自動(dòng)登錄的配置方法,需要的朋友可以參考下


一、如何設(shè)置phpMyAdmin自動(dòng)登錄?

首先在根目錄找到config.sample.inc.php復(fù)制一份文件名改為config.inc.php(如果已經(jīng)存在 config.inc.php 文件,則直接修改該文件即可)。
打開config.inc.php 找到 $cfg['Servers'][$i]['auth_type'],將

復(fù)制代碼 代碼如下:
$cfg['Servers'][$i]['auth_type'] = 'cookie';

改成
復(fù)制代碼 代碼如下:
$cfg['Servers'][$i]['auth_type'] = 'config';


然后在下面追加如下代碼:
復(fù)制代碼 代碼如下:
$cfg['Servers'][$i]['user']          = 'root';      // 設(shè)置的mysql用戶名
$cfg['Servers'][$i]['password']      = '123456';    // 設(shè)置的mysql密碼

二、如何取消phpMyAdmin自動(dòng)登錄?

只需把

復(fù)制代碼 代碼如下:
$cfg['Servers'][$i]['auth_type'] = 'config';

改成
復(fù)制代碼 代碼如下:
$cfg['Servers'][$i]['auth_type'] = 'cookie';

保存即可。

溫馨提示:
$cfg['Servers'][$i]['auth_type'] 有三個(gè)待選項(xiàng)值,即 cookie、http、config。用的比較多的是 cookie與config。當(dāng)在正式環(huán)境時(shí),用 cookie,要求用戶必須輸入正確的用戶名與密碼,而在本地測(cè)試服務(wù)器時(shí),一般用 config,省得session失效后又得輸入用戶名與密碼,以節(jié)省開發(fā)時(shí)間。

相關(guān)文章

最新評(píng)論