phpMyAdmin是一款可以web化管理MySQL数据库的工具:
可以使用下列命令安装phpmyadmin:yum install phpmyadmin
现在我们配置phpMyAdmin。我们改变Apache的配置文件让其只能通过本地访问(通过注销<Directory /usr/share/phpMyAdmin/参数):vi /etc/httpd/conf.d/phpMyAdmin.conf
# phpMyAdmin - Web based MySQL browser written in php
#
# Allows only localhost by default
#
# But allowing phpMyAdmin to anyone other than localhost should be considered
# dangerous unless properly secured by SSL
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin
#
# order deny,allow
# deny from all
# allow from 127.0.0.1
# allow from ::1
#
# This directory does not require access over HTTP - taken from the original
# phpMyAdmin upstream tarball
#
Order Deny,Allow
Deny from All
Allow from None
# This configuration prevents mod_security at phpMyAdmin directories from
# filtering SQL etc. This may break your mod_security implementation.
#
#
#
# SecRuleInheritance Off
#
#
重启Apache:/etc/init.d/httpd restart
然后,你就可以通过http://192.168.0.100/phpmyadmin/:访问phpMyAdmin了 :