ex:/usr/local/apache/htdocs/ (網頁存放的位置)
a. # mv phpMyAdmin_2.0.5.tar.gz /usr/local/apache/htdocs/ 移到檔案的根目錄
b. # tar zxvf phpMyAdmin_2.0.5.tar.gz 解壓縮phpMyAdmin_2.0.5.tar.gz
c. 路徑 /usr/local/apache/htdocs/phpMyAdmin
d. 修改設定檔
# vi config.inc.php3
找到下面的部分
$cfgServers[1]['host'] = 'localhost'; // MySQL 的hostname
$cfgServers[1]['port'] = ''; // MySQL 的port 空白表示預設3306
$cfgServers[1]['adv_auth'] = true; // 是否採用進階功能
$cfgServers[1]['stduser'] = 'root'; // MySQL的管理者
$cfgServers[1]['stdpass'] = '123456'; // MySQL管理者的密碼
//採用root為管理者,密碼為123456 你可以採用自己喜歡的
4.測試
開啟瀏覽器,輸入http://的網址/phpMyAdmin/done ...
中文最佳化
若剛使用的檔案是c_phpMyAdmin_2.0.5.tar.gz則沒有中文問題的困擾若你是照我步驟來做的話請取得中文最佳化檔(ftp://ohaha.ks.edu.tw/pub/source/php/chinese_big5.inc.php3) 將此檔放入的phpMyAdmin的目錄之中 他會取代chinese_big5.inc.php3此檔若你覺得不太保險的話 你可以先將原有的chinese_big5.inc.php3更名然後將新檔案放入
a. mv chinese_big5.inc.php3 chinese_big5.inc.php3.old// 更名為chinese_big5.inc.php3.old
b. mv chinese_big5.inc.php3 /usr/local/apache/htdocs/phpMyAdmin/
小技巧
發覺上面有什麽不對了呢?如果每個人都這樣做那麼是不是每個人的phpMyAdmin的位置都在http://網址/phpMyAdmin這裡? 這種情況是可以改變的..只要將phpMyAmin資料夾更名即可。若我要更名為pma(各取一個字,方便記憶)
a. 路徑:/usr/local/apache/htdocs/
b. # mv phpMyAdmin pma