phpMyAdmin 嘗試連接到 MySQL 服務器,但服務器拒絕連接。您應該檢查配置文件中的主機、用戶名和密碼,並確認這些信息與 MySQL 服務器管理員所給出的信息一致。
原因有可能是因為修改了mysql數據庫的密碼導致。
解決方法:
1)修改phpmyadmin 下的config.inc.PHP中的 $cfg['Servers'][$i]['password'] = '';選項
2)修改$cfg['Servers'][$i]['auth_type'] = 'http'; //修改為http
當然,到了這里也許還是會出錯,因為這是IE緩存所致,選擇IE Internet選項->常規-》清除瀏覽記錄,清除緩存后解決問題
以下是config.inc.php中有關數據庫配置的配置信息:
在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'] = 'mysql';