phpMyAdmin登录时指定服务器ip和端口的方法

1、打开phpMyAdmin目录, 在此目录下是否有config.sample.inc.php文件,如果存在,那么将其改名为config.inc.php;为避免修改失误所造成的损失,强烈建议先备份 config.sample.inc.php 文件为 config.sample.inc.php.bak;

2、在phpMyAdmin的配置文件 config.inc.php  中加上一个配置项

$cfg['AllowArbitraryServer'] = true;  /* 允许自定义服务器,默认为false */

设置多选服务器

$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '172.22.0.16';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = false;


鼎云博客
  • 最新评论
  • 总共0条评论