1 從官網下載就可以了。
2 把解壓後的文件放在apache的www目錄下。
3 把libraries中的config.default.php複製到phpmyAdmin根目錄下,改名爲config.inc.php
4 修改config.inc.php的配置一下選項
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/';
$cfg['blowfish_secret'] = 'cookie';//這裏是隨便填寫的,不爲空就行
$cfg['Servers'][$i]['auth_type'] = 'http'; // 管理這裏--如果PHP安裝模式爲Apache,可以使用http和cookie;如果PHP安裝模式爲CGI,可以使用cookie;默認爲config,是不安全的,不推薦。
$cfg['Servers'][$i]['user'] = 'root'; // 管理這裏-----MySQL連接用戶
$cfg['Servers'][$i]['password'] = ''; // 修改這裏mysql 密碼-----MySQL連接用戶
// MySQL password (only needed with 'config' auth_type)-----MySQL連接密碼,建議在安裝好PHP和MySQL後,先用phpmyadmin設定root密碼,然後在這裏填寫
後面的配置可以不管:
$cfg['Servers'][$i]['host'] = 'localhost'; //----這裏可以設定遠程MySQL服務器IP地址
$cfg['Servers'][$i]['port'] = '3306'; // MySQL port - leave blank for default port-----默認爲3306
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // 不用管-----連接MySQL服務器的方式
$cfg['Servers'][$i]['compress'] = FALSE; //不用管-----是否使用壓縮協議,PHP版本須>= 4.3.0
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed
// at left frame
// It may also be an array
// of db-names-----如果在這裏設定一個數據庫的名字,那麼登陸後框架左邊將只顯示這個數據庫
// set to that server.[color]=red]-----是否顯示所有的MySQL服務器
$cfg['ServerDefault'] = 1; // Default server (0 = no default server)
$cfg['Server'] = '';
unset($cfg['Servers'][0]);
/**
* Other core phpMyAdmin settings
*/
$cfg['OBGzip'] = 'auto'; // use GZIP output buffering if possible (TRUE|FALSE|'auto')-----有必要的話是否使用GZIP輸出緩衝
$cfg['PersistentConnections'] = FALSE; // use persistent connections to MySQL database-----是否使用MySQL持久連接,即pconnect
$cfg['ExecTimeLimit'] = 300; // maximum execution time in seconds (0 for no limit)-----最大腳本執行時間,單位:秒
$cfg['SkipLockedTables'] = FALSE; // mark used tables, make possible to show
// locked tables (since MySQL 3.23.30)
$cfg['ShowSQL'] = TRUE; // show SQL queries as run-----運行查詢時顯示SQL查詢語句
$cfg['AllowUserDropDatabase'] = FALSE; // show a 'Drop database' link to normal users-----是否對普通用戶顯示“刪除數據庫”連接
$cfg['Confirm'] = TRUE; // confirm 'DROP TABLE' & 'DROP DATABASE'-----刪除數據表/庫前是否出現確認提示框
$cfg['LoginCookieRecall'] = TRUE; // recall previous login in cookie auth. mode or not-----是否收回先前cookie認證模式的cookie