libraries/config.default.php(舊版為根目錄 config.inc.php),請使用支援 UTF-8 的編輯器(如 Notepad++)。| 配置項 | 說明 | 建議值 |
|---|---|---|
| $cfg['PmaAbsoluteUri'] | phpMyAdmin 完整 URL | https://yourdomain.com/phpmyadmin/ |
| $cfg['Servers'][$i]['host'] | MySQL 主機 | localhost(通常預設) |
| $cfg['Servers'][$i]['auth_type'] | 認證模式 | cookie(生產環境) |
| $cfg['Servers'][$i]['user'] | MySQL 用戶名 | root(本機)或 FTP 用戶名(虛擬主機) |
| $cfg['Servers'][$i]['password'] | MySQL 密碼 | 留空或填寫實際密碼 |
| $cfg['Servers'][$i]['only_db'] | 限制顯示的資料庫 | 單庫填名稱,多庫留空 |
| $cfg['DefaultLang'] | 介面語言 | zh(簡體)或 zh-tw(繁體) |
| $cfg['blowfish_secret'] | Cookie 加密金鑰 | 填寫網域名或隨機長字串 |
保存配置後上傳至伺服器,訪問配置的 URL 即可登入。建議配合 .htaccess 或 Nginx 限制訪問 IP,增強安全性。
新版本(4.x/5.x)配置檔為config.inc.php,結構相似,請參考官方文檔config.sample.inc.php。