修改libraries/config.default.php

545行,添加

$cfg['Servers']['2'] = $cfg['Servers'][$i];
$cfg['Servers']['2']['host'] = '192.168.1.200';
$cfg['Servers']['2']['user'] = 'test';
$cfg['Servers']['2']['password'] = 'test';

 

要多个的话就再继续添加

然后将该文件复制到phpmyadmin根目录下面,改名为config.inc.php即可出现多服务器的下拉菜单

 

如果想不输入密码直接进入 将

$cfg['Servers'][$i]['auth_type'] = 'config'; 改为config即可,会按照该配置文件里面的密码自动进行匹配登陆

$cfg['ServerDefault'] = 2;可以制定默认登陆那个服务器,即上面的$i对应的值

相关文章:

  • 2021-08-08
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2021-10-19
  • 2021-06-14
  • 2022-12-23
  • 2021-12-26
  • 2022-01-31
  • 2021-06-05
相关资源
相似解决方案