MySQL的管理工具:phpMyAdmin使用簡介

來源:互聯網
上載者:User
mysql 前言:

所謂的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/

小技巧

發覺上面有什麽不對了呢?如果每個人都這樣做那麼是不是每個人的phpMyAdmin的位置都在http://網址/phpMyAdmin這裡? 這種情況是可以改變的..只要將phpMyAmin資料夾更名即可。若我要更名為pma(各取一個字,方便記憶)
a. 路徑:/usr/local/apache/htdocs/
b. # mv phpMyAdmin pma

如此別人就無法去解的phpMyAdmin的位置...只剩下你自己知道了...

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.