在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那一行加上密碼就行了。其他地方都不用改。
