免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3048 | 回复: 16
打印 上一主题 下一主题

安装phpMyAdmin遇到的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-08-06 18:07 |只看该作者 |倒序浏览
把phpMyAdmin释放到PHP可执行目录里 d:/www/phpMyAdmin
修改config.inc.php文件(已安装MYSQL,并也已经启动了服务)
然后用IE打开:http://localhost/\phpmyAdmin\INSTALL
提示:
原帖由 "Elanman" 发表:
$Id: INSTALL,v 1.7 2001/08/03 09:19:35 swix Exp $

phpMyAdmin - Installation
-------------------------

        Please have a look to the Documentation.txt or
        Documentation.html files.
   

请问这是什么错误?

论坛徽章:
0
2 [报告]
发表于 2003-08-06 18:10 |只看该作者

安装phpMyAdmin遇到的问题

直接用IE打开

http://localhost/phpmyAdmin/index.php

论坛徽章:
0
3 [报告]
发表于 2003-08-06 18:14 |只看该作者

安装phpMyAdmin遇到的问题

直接用IE打开“http://localhost/phpmyAdmin/index.php”
提示:

原帖由 "Elanman" 发表:
Warning: Cannot modify header information - headers already sent by (output started at D:\www\phpmyAdmin\config.inc.php:719) in D:\www\phpmyAdmin\libraries\auth\config.auth.lib.php on line 95



Welcome to phpMyAdmin 2.5.2


phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in config.inc.php and make sure that they correspond to the information given by the administrator of the MySQL server.

Error

MySQL said:


Access denied for user: 'root@localhost' (Using password: YES)

论坛徽章:
0
4 [报告]
发表于 2003-08-06 18:45 |只看该作者

安装phpMyAdmin遇到的问题

提示不能连接数据库,检查config.inc.php文件,检查你的php是否支持mysql.

论坛徽章:
0
5 [报告]
发表于 2003-08-06 19:38 |只看该作者

安装phpMyAdmin遇到的问题

怎样检查那?我是新手,能不能说清楚一点
谢谢

论坛徽章:
0
6 [报告]
发表于 2003-08-06 20:24 |只看该作者

安装phpMyAdmin遇到的问题

原帖由 "Elanman" 发表:
怎样检查那?我是新手,能不能说清楚一点
谢谢
   

编辑一个test.php如下,测试一下,看看有没有返回值。




<?
mysql_connect("localhost","user","password" /*连接数据库,用户名和密码自行修改*/
or die("无法连接数据库,请重试";

mysql_select_db("mysql"
or die("无法选择数据库,请重试";

$query=" select * from user /*从数据库中搜索和登录用户相应的资料*/
";

$result=mysql_query($query);
echo $numrows=mysql_num_rows($result);
?>;

论坛徽章:
0
7 [报告]
发表于 2003-08-06 21:25 |只看该作者

安装phpMyAdmin遇到的问题

按照您的做,我打开页面,显示:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user: 'user@localhost' (Using password: YES) in D:\www\test.php on line 2
&Icirc;&THORN;·¨&Aacute;&amp;&frac12;&Oacute;&Ecirc;&amp;&frac34;&Yacute;&amp;&amp;&amp;&amp;&Ccedil;&amp;&Ouml;&Oslash;&Ecirc;&Ocirc;

论坛徽章:
0
8 [报告]
发表于 2003-08-07 10:00 |只看该作者

安装phpMyAdmin遇到的问题

原帖由 "Elanman"].mysql-connect 发表:
: Access denied for user: 'user@localhost' (Using password: YES) in D:\www\test.php on line 2
ÎÞ·¨Á&½ÓÊ&¾Ý&&&..........
   

mysql_connect("localhost","user","password"

在这一行中"localhost"代表的是你将要连接的主机,"user"代表的是你连接该主机的用户名,"password"代表的是你连接该主机用户的口令,你需要修改一下.

论坛徽章:
0
9 [报告]
发表于 2003-08-07 10:02 |只看该作者

安装phpMyAdmin遇到的问题

原帖由 "Elanman"].mysql-connect 发表:
: Access denied for user: 'user@localhost' (Using password: YES) in D:\www\test.php on line 2
ÎÞ·¨Á&½ÓÊ&¾Ý&&&..........
   

mysql_connect("localhost","user","password"

在这一行中"localhost"代表的是你将要连接的主机,"user"代表的是你连接该主机的用户名,"password"代表的是你连接该主机用户的口令,你需要修改一下.

论坛徽章:
0
10 [报告]
发表于 2003-08-07 11:22 |只看该作者

安装phpMyAdmin遇到的问题

假设我的 u:root  p:12345  那么您给的那段代码 应该写成:(还有什么需要改的吗?
原帖由 "Trotter" 发表:
<?
mysql_connect("localhost","root","12345" /*连接数据库,用户名和密码自行修改*/
or die("无法连接数据库,请重试";

mysql_select_db("mysql"
or die("无法选择数据库,请重试";

$query=" select * from user /*从数据库中搜索和登录用户相应的资料*/
";

$result=mysql_query($query);
echo $numrows=mysql_num_rows($result);
?>;



我照这个样子写,用ie打开以后 依然是刚才显示的错误代码.请问这个时候所填写的用户名和密码应该是MYSQL的?(我写的是MYSQL的)
谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP