CentOS 6.0安裝phpMyAdmin的簡單步驟

來源:互聯網
上載者:User

http://database.51cto.com/art/201108/287961.htm


phpMyAdmin是一個Web介面,通過它可以管理你的MySQL資料庫。那麼怎麼在CentOS 6.0安裝phpMyAdmin呢?本文我們就來介紹這一安裝過程,希望能夠對您有所協助。

首先,我們使我們的CentOS系統的RPMForge軟體庫phpMyAdmin,不是官方的CentOS 6.0庫,匯入rpmforge的GPG密鑰:

 
  1. rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt  

x86_64 系統安裝命令:

 
  1. yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm 

i386 系統安裝命令:

 
  1. yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm  

現在可以安裝phpMyAdmin如下:

 
  1. yum install phpmyadmin 

現在,我們配置phpMyAdmin。改變Apache的配置,使phpMyAdmin串連,而不僅僅是從localhost(注釋掉允許) :

 
  1. vi /etc/httpd/conf.d/phpmyadmin.conf   
  2. #  
  3. # Web application to manage MySQL  
  4. #  
  5. #  
  6. # Order Deny,Allow  
  7. # Deny from all  
  8. # Allow from 127.0.0.1  
  9. #  
  10. Alias /phpmyadmin /usr/share/phpmyadmin  
  11. Alias /phpMyAdmin /usr/share/phpmyadmin  
  12. Alias /mysqladmin /usr/share/phpmyadmin 

下一步,我們改變在phpMyAdmin的身分識別驗證cookie ,HTTP:

 
  1. vi /usr/share/phpmyadmin/config.inc.php[...]  
  2. /* Authentication type */  
  3. $cfg['Servers'][$i]['auth_type'] = ‘http’;  
  4. [...]  

重新啟動Apache:

 
  1. /etc/init.d/httpd restart  

之後,您可以根據訪問phpMyAdmin http://192.168.0.100/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.