V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
xiaoyanbot
V2EX  ›  问与答

phpmyadmin $cfg['Servers']配置参数,选择服务器,怎样配置不显示主机地址。

  •  
  •   xiaoyanbot · 2018-03-08 11:41:14 +08:00 · 1143 次点击
    这是一个创建于 2263 天前的主题,其中的信息可能已经有所发展或是发生改变。
    $i++;
    /* Authentication type */
    $cfg['Servers'][$i]['auth_type'] = 'cookie';
    /* Server parameters */
    $cfg['Servers'][$i]['host'] = 'localhost';
    $cfg['Servers'][$i]['compress'] = false;
    $cfg['Servers'][$i]['AllowNoPassword'] = false;
    

    例如:连接本地服务器,不显示 localhost,而是显示自己配置的变量。

    1 条回复    2018-03-08 11:42:35 +08:00
    cevincheung
        1
    cevincheung  
       2018-03-08 11:42:35 +08:00
    原生不支持吧。
    配合 hosts 试试
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2167 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:39 · PVG 10:39 · LAX 19:39 · JFK 22:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.