顯示:
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'] = 'mysqli';