Linux安装phpMyAdmin配置管理多个数据库

1、下载 :phpMyAdmin

2、解压安装包:

1 tar -zxvf phpMyAdmin-4.6.5.2-all-languages.tar.gz

3、替换目录 : 

1 mv phpMyAdmin-4.6.5.2-all-languages pma

4、修改配置文件:

1 cd pma
2 cp config.sample.inc.php config.inc.php

5、修改config.inc.php 添加host 地址

 1 $i = 0;
 2 
 3 /**
 4  * First server
 5  */
 6 $i++;
 7 /* Authentication type */
 8 $cfg['Servers'][$i]['auth_type'] = 'cookie';
 9 /* Server parameters */
10 $cfg['Servers'][$i]['host'] = '127.0.0.1';
11 $cfg['Servers'][$i]['connect_type'] = 'tcp';
12 $cfg['Servers'][$i]['compress'] = false;
13 $cfg['Servers'][$i]['AllowNoPassword'] = false;
14 
15 // **** 如果需要多个数据库 继续添加即可 *** //
16 
17 /**
18  * Second server
19  */
20 # $i++;
21 # $cfg['Servers'][$i]['auth_type'] = 'cookie';
22 # $cfg['Servers'][$i]['host'] = 'host地址2';
23 # $cfg['Servers'][$i]['connect_type'] = 'tcp';
24 # $cfg['Servers'][$i]['compress'] = false;
25 # $cfg['Servers'][$i]['AllowNoPassword'] = false;

  

原文地址:https://www.cnblogs.com/gouge/p/7089809.html