在phpMyAdmin中登录时是否可以指定主机?

发布时间:2022-04-30 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了在phpMyAdmin中登录时是否可以指定主机?脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
我想知道是否可以在PHPMyAdmin的登录屏幕上指定主机.

每当我需要连接到不同的服务器时,我必须编辑config.inc.PHP中的主机字段.

看看这个:
http://www.onlinehowto.net/config-multiple-servers-in-PHPmyadmin/1405

/* Single server config section */
$i++;
/* Authentication tyPE */
$CFg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'dbsub';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['comPress'] = false;
/* Select MysqLi if your server has IT */
$cfg['Servers'][$i]['extension'] = 'MysqL';
/*
* Servers configuration
*/
$i = 0;

/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'db';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['comPRess'] = false;
/* Select MysqLi if your server has it */
$cfg['Servers'][$i]['extension'] = 'MysqL';
/*
* Second server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'dbsub';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select MysqLi if your server has it */
$cfg['Servers'][$i]['extension'] = 'MysqL';
/*
* Third server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '@R_777_2358@s1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select MysqLi if your server has it */
$cfg['Servers'][$i]['extension'] = 'MysqL';

$cfg['DisplayServersList']    = TRUE;

/*
* End of servers configuration

脚本宝典总结

以上是脚本宝典为你收集整理的在phpMyAdmin中登录时是否可以指定主机?全部内容,希望文章能够帮你解决在phpMyAdmin中登录时是否可以指定主机?所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。