phpmyadmin出错问题

dreamss16 2008-03-30 06:48:44

在安装iis6+php5+mysql+phpmyadmin的调试中遇到的问题
安装就绪后,进行测试,在浏览器中输入http://localhost/phpmyadmin/main.php
浏览器正常打开,但是出现如下错误画面:

Welcome to phpMyAdmin 2.11.5

Probably reason of this is that you did not create configuration file. You might want to use setup script to create one.

Error
MySQL said:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)


Open new phpMyAdmin window

敢问,是什么原因呢??
...全文
90 点赞 收藏 4
写回复
4 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
richard_ma 2008-03-30
如果你是用cookie认证的账户(默认都是的)
找到这行,在引号中随便填入一些字符
$cfg['blowfish_secret'] = '';

这个是为cookie加密用的,不填的话会报错

关于mysql error 1044/1045可以参照下贴
http://blog.csdn.net/china2wto/archive/2005/11/08/525449.aspx
回复
dreamss16 2008-03-30
终于按照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 81



Welcome to phpMyAdmin 2.11.5

phpMyAdmin 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)


这是什么原因阿??哪位高手能告诉我呀
回复
dreamss16 2008-03-30
没有找到您所说的命令段,有下面两段:
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

不知道是不是其中的哪个??
回复
justicesun 2008-03-30
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';
回复
相关推荐
发帖
基础编程
创建于2007-09-28

2.1w+

社区成员

从PHP安装配置,PHP入门,PHP基础到PHP应用
申请成为版主
帖子事件
创建了帖子
2008-03-30 06:48
社区公告
暂无公告