2016-12-13 42 views
0

我安裝了xampp,我正在嘗試連接到localhost/phpmyadmin。
我收到一個錯誤。配置中定義的控制用戶連接失敗。
我甚至不能以用戶名登錄:root,沒有密碼。
這裏是我的配置:Phpmyadmin - 控制用戶連接失敗PHPMyadmin

/* Authentication type and info */ 
$cfg['Servers'][$i]['auth_type'] = 'cookie'; 
$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 
$cfg['Lang'] = ''; 

/* User for advanced features */ 
$cfg['Servers'][$i]['controluser'] = 'pma'; 
$cfg['Servers'][$i]['controlpass'] = ''; 

回答

0

臨時註釋掉控制用戶和controlpass指令(加入//到行的開頭)。然後照常登錄;如果您希望使用高級功能,則可以重置'pma'用戶的密碼並在config.inc.php中設置新密碼。