访问phpmyadmin/Index.php出现
错误
MySQL 返回: #1045 - Access denied for user 'root'@'localhost' (using password: NO) 

以下是config.inc.php(此文件已复制到phpmyadmin根目录)配置文件的内容:
<?php
/*
 * Generated configuration file
 * Generated by: phpMyAdmin 2.11.9.5 setup script by Michal Čihař <[email protected]>
 * Version: $Id: setup.php 12304 2009-03-24 12:56:58Z nijel $
 * Date: Fri, 05 Jun 2009 10:41:07 GMT
 *//* Servers configuration */
$i = 0;/* Server localhost (config:root) [1] */
$i++;
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['extension'] = 'mysql';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';/* End of servers configuration */?>
用自己创建的数据库连接的PHP文件来测试是成功的!