all-languages.zip,解壓至虛擬目錄 D:\www\phpmyadminlibraries/config.default.php (新版不再用根目錄 config.inc.php)$cfg['PmaAbsoluteUri'] = 'https://localhost/phpmyadmin/'; // 必須含 https:// 及尾部 / $cfg['Servers'][$i]['host'] = 'localhost'; $cfg['Servers'][$i]['auth_type'] = 'cookie'; // 建議統一用 cookie 模式 $cfg['blowfish_secret'] = 'your_random_string_46chars'; // cookie 模式必填,否則報錯 $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = 'your_mysql_pass'; $cfg['DefaultLang'] = 'zh'; // 簡體中文 $cfg['DefaultCharset'] = 'gb2312';
https://localhost/phpmyadmin/ 即可使用現象:登入頁提示「Cannot load mcrypt extension」
排查清單:
mysqld-nt.exe 進程)C:\Windows\System32 缺少 libmcrypt.dll → 從 PHP 目錄複製過去並重啟 Web 服務php.ini 未啟用 extension=php_mcrypt.dll (去掉分號)phpdir=C:\php (視實際路徑)現象:已在 config.default.php 設定但仍報錯
真相:根目錄殘留舊版 config.inc.php,優先級高於 libraries/config.default.php
解決:刪除根目錄 config.inc.php 後重新整理即正常
原因:MySQL 服務未啟動
解決:控制台 → 服務 → 啟動 MySQL;任務管理器確認 mysqld-nt.exe 存在
現象:Cannot start session without errors
解決:
php.ini 設定 session.auto_start = 1C:\php\tmp 目錄,session.save_path = "C:/php/tmp" 並去掉分號避坑提醒:網上許多教程誤導為 php_mbstring.dll 問題,實測無關。
phpMyAdmin 2.11.x 以降配置檔遷移至 libraries/config.default.php,舊版 config.inc.php 會干擾新版讀取,全新安裝請勿保留舊配置檔。