1、下载 :phpMyAdmin
2、解压安装包:
tar -zxvf phpMyAdmin-4.6.5.2-all-languages.tar.gz
3、替换目录 :
mv phpMyAdmin-4.6.5.2-all-languages pma
4、修改配置文件:
cd pma
cp config.sample.inc.php config.inc.php
5、修改config.inc.php 添加host 地址
$i = ; /**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false; // **** 如果需要多个数据库 继续添加即可 *** // /**
* Second server
*/
# $i++;
# $cfg['Servers'][$i]['auth_type'] = 'cookie';
# $cfg['Servers'][$i]['host'] = 'host地址2';
# $cfg['Servers'][$i]['connect_type'] = 'tcp';
# $cfg['Servers'][$i]['compress'] = false;
# $cfg['Servers'][$i]['AllowNoPassword'] = false;