安装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"
Input user and password !!!!
example: root 123123
登陆以后,就可以在web页面尽情的使用Mysql了;
本文出自 “西伯利亚·狼” 博客,请务必保留此出处http://kernal.blog.51cto.com/8136890/1426128