phpmyadmin下面有个config.inc.php文件,你要把 /* Authentication type and info */ 
$cfg['Servers'][$i]['auth_type'] = 'cookie'; 
$cfg['Servers'][$i]['user'] = 'root';                //给改成你的mysql用户名/密码 
$cfg['Servers'][$i]['password'] = 'root';            //给改成你的mysql用户名/密码 
$cfg['Servers'][$i]['extension'] = 'mysql'; 

解决方案 »

  1.   

    没有找到您所说的命令段,有下面两段:
    if (! $controllink) {
                $controllink = PMA_DBI_connect($cfg['Server']['user'],
                    $cfg['Server']['password'], true);
            } // end if ... else和// Connects to the server (validates user's login)
            $userlink = PMA_DBI_connect($cfg['Server']['user'],
                $cfg['Server']['password'], false);        // Pass #2 of DB-Config to read in user level DB-Config will go here
            // Robbat2 - May 11, 2002不知道是不是其中的哪个??
      

  2.   

    终于按照1楼的做了,可是这回的错误变成了:Warning: Cannot modify header information - headers already sent by (output started at D:\phpMyAdmin\libraries\Config.class.php(377) : eval()'d code:9) in D:\phpMyAdmin\libraries\auth\config.auth.lib.php on line 81Welcome to phpMyAdmin 2.11.5phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.Error
    MySQL said:  #1045 - Access denied for user 'localhost'@'localhost' (using password: YES)   
    这是什么原因阿??哪位高手能告诉我呀
      

  3.   

    如果你是用cookie认证的账户(默认都是的)
    找到这行,在引号中随便填入一些字符
    $cfg['blowfish_secret'] = '';这个是为cookie加密用的,不填的话会报错关于mysql error 1044/1045可以参照下贴
    http://blog.csdn.net/china2wto/archive/2005/11/08/525449.aspx