MySQL 的管理工具:phpMyAdmin_PHP教程

來源:互聯網
上載者:User
本文出自:OHaHa的學習心得[ohaha.ks.edu.tw] 作者:藍色泡泡(panda@ks.edu.tw)
前言:
所謂的phpMyAdmin簡單的說就是一種MySQL的管理工具。
 
透過此一程式,可以直接從web上去管理MySQL,不需要到系統上去執行。
 
安裝步驟:
1.取得檔案ftp://ohaha.ks.edu.tw/pub/source/php/phpMyAdmin_2.0.5.tar.gz或是ftp://ohaha.ks.edu.tw/pub/source/php/c_phpMyAdmin_2.0.5.tar.gz
其中唯一的差別是在於後者不需要再做中文最佳化的動作。
 
所謂的中文最佳化乃是因為此程式的翻譯者可能是大陸的..所以翻譯不佳
若你覺得沒有關的話,也可以忽略它。
 
2.我們先採用前者然後再加上中文最佳化。
 
3.將此檔解壓縮到web伺服器的檔案根目錄
說明白些也就是你放置網頁的地方啦
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/

http://www.bkjia.com/PHPjc/631111.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/631111.htmlTechArticle本文出自:OHaHa的學習心得[ohaha.ks.edu.tw] 作者:藍色泡泡(panda@ks.edu.tw) 前言: 所謂的phpMyAdmin簡單的說就是一種MySQL的管理工具。 透過此一程式...

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.