阿里云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. XML解析錯(cuò)誤:未組織好 的解決辦法2. asp批量添加修改刪除操作示例代碼3. JSP數(shù)據(jù)交互實(shí)現(xiàn)過(guò)程解析4. ASP腳本組件實(shí)現(xiàn)服務(wù)器重啟5. PHP字符串前后字符或空格刪除方法介紹6. Properties 持久的屬性集的實(shí)例詳解7. 三個(gè)不常見(jiàn)的 HTML5 實(shí)用新特性簡(jiǎn)介8. IE6/IE7/IE8/IE9中tbody的innerHTML不能賦值的完美解決方案9. 使用Spry輕松將XML數(shù)據(jù)顯示到HTML頁(yè)的方法10. PHP循環(huán)與分支知識(shí)點(diǎn)梳理
