阿里云CentOS 6.3安装phpMyAdmin

安装 mysql客户端和服务端
# yum install mysql mysql-server
# service mysqld restart

重新设置密码。默认mysql root用户密码为空,phpMyAdmin不允许密码位空。
# mysql_secure_installation

设置mysql服务默认启动
# chkconfig mysqld on

安装rpmforge YUM源 (默认源里不包含phpMyAdmin)
# yum install http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

安装默认源里不包含phpMyAdmin
# yum install phpMyAdmin

设置访问权限
# vim /etc/httpd/conf.d/phpMyAdmin.conf
注释掉只允许本地访问限制
#<Directory /usr/share/phpMyAdmin/>
# Order Deny,Allow
# Deny from All
# Allow from 127.0.0.1
# Allow from ::1
#</Directory>

重启httpd服务
# service httpd restart

访问 http://my_ip/phpMyAdmin/
使用刚才设置的mysql密码登陆

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.