這是因為WampServer設置了直接登陸。
修改config.inc.php文件中$cfg['Servers'][$i]['auth_type'] 的值改為cookie即可,默認config,不用登錄直接進(jìn)入管理界面
$cfg['blowfish_secret'] = 'php' //絕密的短語(yǔ)密碼
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'root'; // MySQL password (only needed)
錯誤提示:
#1045 - Access denied for user 'root'@'localhost' (using password: NO),配置文件中設置的用戶(hù)和密碼不正確與mysql中的用戶(hù)和密碼不符
配置文件現在需要絕密的短語(yǔ)密碼(blowfish_secret)。要設置$cfg['blowfish_secret'] = 'php';它的值默認為空,必須給一個(gè)值,任何值都可以。
聯(lián)系客服