給phpMyAdmin修改root密碼后出現訪問被拒絕的問題的解決辦法


在phpMyAdmin修改用戶的密碼其實是修改了MySQL里面用戶的密碼,但是phpMyAdmin這個站點本身用戶的信息並沒有更新。需要手動更新。

修改文件:C:\xampp\phpMyAdmin\config.inc.php,找到這一節:

/* Authentication type and info */
$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'] = '';

在password那一行加上密碼就行了。其他地方都不用改。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM