嗨,我知道它的一個老問題,但我嘗試了很多答案和指南,但都是徒勞的。我使用phpMyAdmin沒有我的本地機器上的密碼之前,我使用的命令提示符窗口上有改變密碼以下命令XAMPP phpMyadmin:更改密碼後訪問被拒絕
mysqladmin.exe -u root密碼根
從那時起,我不能打開我的本地主機/ phpMyAdmin的,我得到以下錯誤
1045 - 訪問被拒絕的用戶 '根' @ 'localhost' 的(使用密碼:NO)
我試圖改變該文件的當前的config.inc.php狀態爲如下
$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'] = '';
/* Bind to the localhost ipv4 address and tcp */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
/* User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
我試圖改變從本地主機/ security.php和改變密碼的密碼。我也嘗試通過打開resetroot.bat批處理文件來重置根密碼。我認真地認爲我已經搞砸了,所以如果有人能幫助我,我會感激不盡。 我使用XAMPP在Windows 7上
編輯此外,我想告訴你,我曾經試圖
$cfg['Servers'][$i]['password'] = '';
而且還提供了新的密碼
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = '';
改變用戶以root身份登錄
對不起,請參閱我的編輯 – 2015-03-13 06:34:28