在config.inc.php中修改$cfg['Servers'][$i]['auth_type']

解决方案 »

  1.   

    $cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    $cfg['Servers'][$i]['password']      = '666666';这3个我假设我是这样设置的,我在mysql里面的user和password分别为:root,666666
    可是打开phpmyadmin时就是不要密码,请我具体如何设置?
      

  2.   

    $cfg['Servers'][$i]['auth_type']     = 'http';
      

  3.   

    我刚才也有试着这样设置,但不行啊,我在弹出的输入框中输入"root"和"666666",
    IE没办法打开phpmyadmin,提示  HTTP 错误 401.1 - 未经授权:访问由于凭据无效被拒绝。
    这到底是怎么回事啊?
      

  4.   

    用.htaccess中的配置來控制,
    就是訪問文件夾的權限設置。
    在虛擬主機配置中加入
    <Directory.../<Directory>限制可以設置訪問目錄的權限。
      

  5.   

    我试了很久,最后把配置设置如下:
    $cfg['Servers'][$i]['auth_type']     = 'cookie';    // Authentication method (config, http or cookie based)?
    $cfg['Servers'][$i]['user']          = 'root';      // MySQL user
    $cfg['Servers'][$i]['password']      = '666666'; 竟然可以了,但是我都不知道为什么要设置成cookie,不知道大家是设置成这种方式吗,
    反正我设置成config是一直不行,还是先用吧,谢谢大家!