phpMyAdmin 工具
1、检测是否已安装php、php-mysql、apache等工具
[root@localhost src]# rpm -qa |grep php
php-cli-5.3.3-26.el6.i686
php-gd-5.3.3-26.el6.i686
php-mysql-5.3.3-26.el6.i686
php-pdo-5.3.3-26.el6.i686
php-5.3.3-26.el6.i686
php-xml-5.3.3-26.el6.i686
php-common-5.3.3-26.el6.i686
[root@localhost src]#
|
2、到phpMyAdmin官网下载“phpMyAdmin”,https://www.phpmyadmin.net/
3、将下载的软件拷贝到“/var/www/html/”目录下,重命名“phpMyAdmin”
[root@localhost down]#tar – zxvf phpMyAdmin-4.8.2.tar.gz
[root@localhost down]#cp – r phpMyAdmin-4.8.2 /var/www/html/phpMyAdmin
|
4、修改配置文件“config.sample.inc.php”,将第29行的“cookie”改为“http”
[root@localhost src]# cd /var/www/html/phpMyAdmin/
[root@localhost phpMyAdmin]# gedit config.sample.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'http';
|
5、启动Apache 和mysql
[root@localhost phpMyAdmin]# service httpd start
正在启动 httpd :
[root@localhost phpMyAdmin]# service mysqld start
正在启动 mysqld : [ 确定 ]
[root@localhost phpMyAdmin]#
|
6、在浏览器输入“127.0.0.1/phpMyAdmin”,就可以登录到phpMyAdmin