阿里云CentOS 6.3安裝phpMyAdmin的簡(jiǎn)單步驟
首先,我們使我們的CentOS系統(tǒng)的RPMForge軟件庫(kù)phpMyAdmin,不是官方的CentOS?6.0庫(kù),導(dǎo)入rpmforge的GPG密鑰:
rpm?–import?http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
x86_64?系統(tǒng)安裝命令:
yum?install?http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
i386?系統(tǒng)安裝命令:
yum?install?http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
現(xiàn)在可以安裝phpMyAdmin如下:
yum?install?phpmyadmin現(xiàn)在,我們配置phpMyAdmin。改變Apache的配置,使phpMyAdmin連接,注釋掉?3-8行的內(nèi)容?:
vi /etc/httpd/conf.d/phpmyadmin.conf## Web application to manage MySQL### Order Deny,Allow# Deny from all# Allow from 127.0.0.1#Alias /phpmyadmin /usr/share/phpmyadminAlias /phpMyAdmin /usr/share/phpmyadminAlias /mysqladmin /usr/share/phpmyadmin
下一步,我們改變?cè)趐hpMyAdmin的身份驗(yàn)證?將’cookie’改為?’HTTP’:
vi /usr/share/phpmyadmin/config.inc.php/* Authentication type */$cfg[’Servers’][$i][’auth_type’] = ’http’;
重新啟動(dòng)Apache:
/etc/init.d/httpd?restart
之后,您可以根據(jù)訪問(wèn)phpMyAdmin?http://42.168.0.100/phpmyadmin/管理數(shù)據(jù)庫(kù)了。
相關(guān)文章:
1. 基于javaweb+jsp實(shí)現(xiàn)學(xué)生宿舍管理系統(tǒng)2. 如何封裝一個(gè)Ajax函數(shù)3. ASP.NET MVC實(shí)現(xiàn)樹形導(dǎo)航菜單4. 多級(jí)聯(lián)動(dòng)下拉選擇框,動(dòng)態(tài)獲取下一級(jí)5. springboot返回modelandview頁(yè)面的實(shí)例6. Spring security 自定義過(guò)濾器實(shí)現(xiàn)Json參數(shù)傳遞并兼容表單參數(shù)(實(shí)例代碼)7. python怎么運(yùn)行代碼8. Java 接口和抽象類的區(qū)別詳解9. PHP擴(kuò)展之URL編碼、解碼及解析——URLs10. Laravel Eloquent ORM高級(jí)部分解析
