1、下载phpMyAdmin,并放到/data/www目录下面,并解压
[root@redis www]# ll
-rw-r--r-- 1 root root 9309110 Dec 5 13:48 phpMyAdmin-4.2.13.1-all-languages.zip
[root@redis www]# unzip phpMyAdmin-4.2.13.1-all-languages.zip
[root@redis www]# mv phpMyAdmin-4.2.13.1-all-languages phpMyAdmin
2、修改配置文件
[root@redis www]# cd phpMyAdmin
[root@redis phpMyAdmin]# cp config.sample.inc.php config.inc.php
[root@redis phpMyAdmin]# vim config.inc.php
/*
* Generated configuration file
* Generated by: phpMyAdmin 4.2.13.1 setup script
* Date: Fri, 05 Dec 2014 07:19:13 +0000
*/
/* Servers configuration */
$i= 0;
/* Server: aliyun_backup_db [1] */
$i++;
$cfg['Servers'][$i]['verbose'] ='aliyun_backup_db';
$cfg['Servers'][$i]['host'] ='localhost';
$cfg['Servers'][$i]['port'] = 3306;
$cfg['Servers'][$i]['socket'] ='';
$cfg['Servers'][$i]['connect_type'] ='tcp';
$cfg['Servers'][$i]['auth_type'] ='cookie';
$cfg['Servers'][$i]['user'] ='root';
$cfg['Servers'][$i]['password'] ='123456';
/* End of servers configuration */
$cfg['DefaultLang'] ='zh_CN';
$cfg['blowfish_secret'] ='54815a48415e97.41985653';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] ='';
$cfg['SaveDir'] ='';
?>
3、测试phpMyAdmin
浏览器上,输入”http://localhost/phpMyAdmin”进行测试,账号、密码为MySQL的账号及密码。
注:PHP、Nginx安装及配置,请参考:http://blog.1987.io/archives/45.html