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

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

  •  
  •   xiaoyanbot · 2018 年 3 月 8 日 · 1433 次点击
    这是一个创建于 2968 天前的主题,其中的信息可能已经有所发展或是发生改变。
    $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 年 3 月 8 日
    原生不支持吧。
    配合 hosts 试试
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2455 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 16:05 · PVG 00:05 · LAX 09:05 · JFK 12:05
    ♥ Do have faith in what you're doing.