2014-01-10 70 views
-1

我是一個剛剛設置wamp的新手。我已經在PHPMyadmin中爲root用戶設置了一個密碼,現在我收集到了我應該在config.inc.php中做的事情?Wamp-在config.inc.php中缺少行

好了,而所有的谷歌導遊等顯示這應該是這樣的文件:

/* Authentication type and info */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
$cfg['Servers'][$i]['user'] = 'enter_username_here'; 
$cfg['Servers'][$i]['password'] = 'enter_password_here'; 
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true; 

我的文件包括:

/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'cookie'; 
/* Server parameters */ 
$cfg['Servers'][$i]['host'] = 'localhost'; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
$cfg['Servers'][$i]['compress'] = false; 
/* Select mysql if your server does not have mysqli */ 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 

/* 
* phpMyAdmin configuration storage settings. 
*/ 

所以我不知道我怎麼設置在配置密碼.inc.php,鑑於此?我只是自己添加行嗎?爲什麼我的配置文件與其他配置文件不同?

+0

是的,如果你的配置中缺少該行,只需添加它即可。有很多東西你可以放在配置文件中:http://docs.phpmyadmin.net/en/latest/config.html –

+0

你可以試過它比在這裏發佈花費 – Jessica

+0

$ cfg ['Servers'] [$我] ['AllowNoPassword'] = false; – jingyu

回答

1

你的文件目前包含對錯權?

/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'cookie'; 
/* Server parameters */ 
$cfg['Servers'][$i]['host'] = 'localhost'; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
$cfg['Servers'][$i]['compress'] = false; 
/* Select mysql if your server does not have mysqli */ 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 

加線

$cfg['Servers'][$i]['user'] = 'enter_username_here'; 
$cfg['Servers'][$i]['password'] = 'enter_password_here'; 

,改變

$cfg['Servers'][$i]['auth_type'] = 'cookie'; 

$cfg['Servers'][$i]['auth_type'] = 'config'; 

,使您的文件看起來像這樣

/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
$cfg['Servers'][$i]['user'] = 'enter_username_here'; 
$cfg['Servers'][$i]['password'] = 'enter_password_here'; 
/* Server parameters */ 
$cfg['Servers'][$i]['host'] = 'localhost'; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
$cfg['Servers'][$i]['compress'] = false; 
/* Select mysql if your server does not have mysqli */ 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 
+0

非常感謝。 – eiwob