Fedora下phpMyAdmin的安裝和配置

來源:互聯網
上載者:User

phpMyAdmin主要用於以web介面形式管理mysql。其在Fedora下的安裝方法如下:

1. yum install phpMyAdmin

利用yum安裝的phpMyAdmin,其路徑如下:

安裝路徑:/usr/share/phpMyAdmin

Apache下的設定檔:/etc/httpd/conf.d/phpMyAdmin.conf

2.phpMyAdmin配置:
  修改phpMyAdmin設定檔:我的設定檔為config.inc.php,在/etc/phpMyAdmin下
 
  $cfg['Servers'][$i]['controluser']   = 'root';   // MySQL的根使用者                                                             

  $cfg['Servers'][$i]['controlpass']   = '123';    // 你的MySQL的根使用者密碼
                                              
  $cfg['Servers'][$i]['user']          = '';       // MySQL使用者名稱
     
  $cfg['Servers'][$i]['password']      = '';    // 你的MySQL的使用者對應的密碼
 
  其他的配置選項根據需要設定,使用預設也可以。

3.httpd服務配置:phpMyAdmin是需要藉助於httpd服務的,這一步很重要。

  a.先找到phpMyAdmin的安裝路徑,我的Fedora13 安裝在/usr/share/phpMyAdmin下。

  b.注意你的 httpd 服務已經開啟,若未開啟則使用以下命令:
  sudo chkconfig --level 345 httpd on // 設定開機啟動服務
  sudo service httpd start // 立即啟動服務
  這時可以測試一下,在瀏覽器中輸入 http://localhost/,會出現一個測試頁,說明成功。

  c.將phpMyAdmin的安裝路徑串連到httpd服務類別目錄下:
  sudo ln -s /usr/share/phpMyAdmin /var/www/phpMyAdmin
  在瀏覽器中輸入 http://localhost/phpMyAdmin,會出現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.