下面由phpmyadmin教程欄目給大家介紹phpMyAdmin無法登錄MySQL服務器/空密碼登錄被禁止的解決辦法,希望對需要的朋友有所幫助! 系統(tǒng):Windows 錯誤如下: 查閱了一些資料,有些說的方法如下: Step1:將F:xamppphpMyAdminlibraries的config.default.php中的一下字段修改。 Step1:$cfg['Servers'][$i]['password'] = ''; //將此字段修改為空 Step2:$cfg['Servers'][$i]['nopassword'] = true;//將此字段修改為true Step3:$cfg['Servers'][$i]['AllowNoPassword'] = true;//將此字段修改為true Step4:root用戶使用空密碼即可登錄,記得修改root用戶的密碼。 但是修改之后我還是不能登錄。另一種方法如下: Step1:使用另一個超級用戶的賬號密碼登錄phpMyAdmin Step2: Step3:選擇修改密碼 Step4:填入密碼以及重新輸入,點擊執(zhí)行即可。不要點擊生成密碼?。?! Step5:修改成功之后會顯示如下信息: Step 6:root用戶需要有一個Host為localhost的用戶。(不知道為什么我用phpMyAdmin創(chuàng)建用戶失?。?/span> 在PHPMyAdmin中新建用戶:grant all privileges on *.* to 'root'@'localhost' identified by "newpassword" with grant option; Step7:將F:xamppphpMyAdminlibrariesconfig.default.php中的 $cfg['Servers'][$i]['password'] = ''; 修改為: $cfg['Servers'][$i]['password'] = 'newpassword'; 其中newpassword為root用戶的密碼。重啟Apache和mysqld.exe,使用新的賬號密碼登錄phpMyAdmin即可。