Php和mysql的图形管理工具安装
[root@server1 soft]# unzip phpMyAdmin-
[root@server1 soft]# mv /etc/httpd/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 ]
报错及解决办法:
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
58-2
[root@server1 soft]# yum localinstall libmcrypt-
[root@server1 soft]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
[root@server1 soft]#
58-3
58-4