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

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;

  

上一篇:内核编译之vmlinuz vmlinux system.map initrd


下一篇:原文:I don’t want to see another “using namespace xxx;” in a header file ever again