安装Mysqlphpadmin

安装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"

wKioL1Oaxs7SJ_yDAAC6fORwwAw006.jpg 

Input user and password !!!!

example: root 123123

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

wKiom1Oax5SSD_8eAARR-z8bQ5M352.jpg

你可能感兴趣的:(mysql,phpMyAdmin)