修改config.inc.php3$cfgServers[1]['host'] = 'localhost';           // MySQL hostname
$cfgServers[1]['port'] = '';                        // MySQL port - leave blank for default port
$cfgServers[1]['adv_auth'] = false;             // Use advanced authentication?
$cfgServers[1]['stduser'] = '你的访问用户名';             // MySQL standard user (only needed with advanced auth)
$cfgServers[1]['stdpass'] = '你的密码';                 // MySQL standard password (only needed with advanced auth)
$cfgServers[1]['user'] = '你的访问用户名';                // MySQL user (only needed with basic auth)
$cfgServers[1]['password'] = '你的密码';                // MySQL password (only needed with basic auth)
$cfgServers[1]['only_db'] = '';                        // If set to a db-name, only this db is accessible
$cfgServers[1]['verbose'] = '';                 // Verbose name for this host - leave blank to show the hostname

解决方案 »

  1.   

    我都改了。还是出错。
    如下:
    $cfgServers[1]['host'] = 'localhost';           // MySQL hostname
    $cfgServers[1]['port'] = '3306';                    // MySQL port - leave blank for default port
    $cfgServers[1]['adv_auth'] = false;             // Use advanced authentication?
    $cfgServers[1]['stduser'] = 'root';             // MySQL standard user (only needed with advanced auth)
    $cfgServers[1]['stdpass'] = '';                 // MySQL standard password (only needed with advanced auth)
    $cfgServers[1]['user'] = 'root';                // MySQL user (only needed with basic auth)
    $cfgServers[1]['password'] = '';                // MySQL password (only needed with basic auth)
    $cfgServers[1]['only_db'] = '';                 // If set to a db-name, only this db is accessible
    $cfgServers[1]['verbose'] = '';                 // Verbose name for this host - leave blank to show the hostname
      

  2.   

    你的root没有密码吗?
    用字符模式进取看看mysql -u root -p
      

  3.   

    出错
    $cfgServers[1]['stduser'] = 'root';            // MySQL standard user (only needed with advanced auth)
    $cfgServers[1]['stdpass'] = '';                // MySQL standard password (only needed with advanced auth)
    $cfgServers[1]['user'] = 'root';                // MySQL user (only needed with basic auth)
    $cfgServers[1]['password'] = ''
    前后两个root有什么区别?
      

  4.   

    OK了。
    只要第二个root改为ODBC 是可以了。
    有人知道为什么吗是我自已通过WinMysqlAdmin 里面发现了,一项USER中为
    我就试着改了,没想到成功了。:)》》》》》》》》》》》》》》》》》》》》》》》
      

  5.   

    恭喜!不过winmysqladmin和phpmyadmin有什么区别呀,是做什么用的?
      

  6.   

    phpMyAdmin是通过HTML页面形式的数据库管理用户接口。能过它可以管理数据库资源。
    而WinMySqlAdmin是Windows界面的, 用来只能显示MySql数据库信息的软件。