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

敢问,是什么原因呢??
...全文
155 4 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
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';

21,893

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧