安装Mysqlphpadmin

时间:2014-06-13 21:09:16   收藏:0   阅读:437

安装phpmyadmin通过web管理Mysql,所以需要WebServer的支持;

[1]Install phpMyadmin form to EPELrepositories

# yum --enablerepo=epel -y install phpMyAdmin php-mysql php-mcrypt
# vim /etc/httpd/conf.d/phpMyAdmin.conf
Alias /phpMyAdmin /usr/share/phpMyAdmin
Alias /phpmyadmin /usr/share/phpMyAdmin

<Directory /usr/share/phpMyAdmin/>
   <IfModule mod_authz_core.c>
     # Apache 2.4
     <RequireAny>
       Require ip 127.0.0.1
       Require ip ::1
     </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1 192.168.1.0/24 192.168.2.0/24    # Add your allow  access ip range
     Allow from ::1
   </IfModule>
</Directory>

[2]Restart Httpd Server

# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

[3]Access to "http://$youripaddress/phpmyadmin"

bubuko.com,布布扣 

Input user and password !!!!

example: root 123123

登陆以后,就可以在web页面尽情的使用Mysql了;

bubuko.com,布布扣

本文出自 “西伯利亚·狼” 博客,请务必保留此出处http://kernal.blog.51cto.com/8136890/1426128

安装Mysqlphpadmin,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!