Phpmysql的图形管理工具安装

[root@server1 soft]# unzip phpMyAdmin-2.11.10.1-all-languages.zip -d /etc/httpd

[root@server1 soft]# mv /etc/httpd/phpMyAdmin-2.11.10.1-all-languages/ /var/www/html/phpMyAdmin

[root@server1 html]# vim /etc/httpd/conf/httpd.conf

alias /phpmyadmin  "/var/www/html/phpmyadmin" –添加

[root@server1 html]# chmod -R 777 phpmyadmin

[root@server1 html]# service httpd restart

--可以实现连通,但是没有验证,需要开启验证保证数据的安全

[root@server1 html]# cd phpmyadmin/

[root@server1 phpmyadmin]# pwd

/var/www/html/phpmyadmin

[root@server1 phpmyadmin]# mv config.sample.inc.php config.inc.php

[root@server1 phpmyadmin]#

[root@server1 phpmyadmin]# vim config.inc.php

$cfg['blowfish_secret'] = '123'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

 

[root@server1 phpmyadmin]# mysqladmin -u root -p password '123456'

Enter password:

mysqladmin: connect to server at 'localhost' failed

error: 'Access denied for user 'root'@'localhost' (using password: YES)'

[root@server1 phpmyadmin]# mysqladmin -u root -p password '123456'

Enter password:            --默认是空密码

[root@server1 phpmyadmin]# service httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd:                                            [  OK  ]

报错及解决办法:


phpmyadmin-安装-058_休闲

58-1

[root@server1 phpmyadmin]# ll config.inc.php

-rwxrwxrwx 1 root root 1699 Oct 13 22:29 config.inc.php

[root@server1 phpmyadmin]# chmod a-w config.inc.php


phpmyadmin-安装-058_休闲_02

58-2

 

 

[root@server1 soft]# yum localinstall libmcrypt-2.5.7-5.el5.i386.rpm php-mcrypt-5.1.6-5.el5.i386.rpm --nogpgcheck -y

[root@server1 soft]# service httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd:                                            [  OK  ]

[root@server1 soft]#

 


phpmyadmin-安装-058_phpmyadmin_03

58-3

 

 


phpmyadmin-安装-058_职场_04

58-4