新手问题,急阿 mysql 没有装好?你把代码写出来 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你的mysql的服务没有起来,你用的是不是windows2000,如果是的话,你说一下,我告诉你怎么作。反正是服务没有起来!!! 我的是windows2000,告诉我怎么做,,,,,,,,,,index.php的 源码是<?php // Process config file to determine default server (if any) require('lib.inc.php');?><html><head><title>phpMyAdmin</title></head><frameset cols="150,*" rows="*" border="0" frameborder="0"> <frame src="left.php?server=<?php echo $server;?>" name="nav"> <frame src="main.php?server=<?php echo $server;?>" name="phpmain"></frameset><noframes><body bgcolor="#FFFFFF"></body></noframes></html> 你把lib.inc.php的245-265行代码贴出来,让大家看看是否有问题 //end correction uva 19991215 pt. 2 ----------------------------- } } } } $cfgServer['user']=$PHP_AUTH_USER; $cfgServer['password']=$PHP_AUTH_PW; } if (empty($cfgServer['port'])) $link = $connect_func($cfgServer['host'], $cfgServer['user'], $cfgServer['password']) or mysql_die(); else $link = $connect_func($cfgServer['host'].":".$cfgServer['port'], $cfgServer['user'], $cfgServer['password']) or mysql_die(); $result = mysql_query("SELECT VERSION() AS version") or mysql_die(); $row = mysql_fetch_array($result); define("MYSQL_MAJOR_VERSION", substr($row["version"], 0, 4));}// ----------------------------------------------------------------- mysql 数据库在你的本机上吗?以前出过这样的错误吗? 如果你是在本地机上的话,我告诉你,你按如下顺序打开:开始->程序->管理工具->服务,然后在右边-系列名称中,找到mysql服务,把它启动了便可以了,我以前也是出现过这样的情况,如果不行的话,那我就不会了,你试一试看看. 是本机上我用的是phptriad我该怎么办帮帮我 因为你的代码太不好懂了,也搞不清楚到底是你的代码有问题,还是你的Mysql有问题。建议你写一个简单的代码看看到底是哪个的问题。 安装完mysql先执行c:\mysql\bin\mysqld --install然后执行net start mysql完成 数据库mysql要么没有开启,要么是lib.lic.php文件中的配置有点儿问题,看一下数据库的链接,数据表的选择有没有问题,还有config.php文件你配置好了吗? 关于一则简单正则表达式疑问,期待大师协助,满分送上。。。。。。。。。。。。。。。。。。。。。。。。。。。。。 编写php用什么软件较好呢? .htacess 文件 redirect 跳转难题 sql查询结果随机,大家帮我看下这一小段代码。 PHP 中的IFRAME php文件解析 php如何得到http://url/dir/的内容,类似opendir smarty模板为什么会不显示...原因是什么... 求两个函数:1.返回当前浏览的网页的存放路径,2.返回本网页名子 在线等... 求发邮件的类,带附件! url传递参数 这个怎么实现?
我告诉你怎么作。反正是服务没有起来!!!
,,,,,,,,,,
index.php的 源码是
<?php
// Process config file to determine default server (if any)
require('lib.inc.php');
?><html>
<head>
<title>phpMyAdmin</title>
</head><frameset cols="150,*" rows="*" border="0" frameborder="0">
<frame src="left.php?server=<?php echo $server;?>" name="nav">
<frame src="main.php?server=<?php echo $server;?>" name="phpmain">
</frameset>
<noframes>
<body bgcolor="#FFFFFF"></body>
</noframes>
</html>
}
}
}
}
$cfgServer['user']=$PHP_AUTH_USER;
$cfgServer['password']=$PHP_AUTH_PW;
} if (empty($cfgServer['port']))
$link = $connect_func($cfgServer['host'], $cfgServer['user'], $cfgServer['password']) or mysql_die();
else
$link = $connect_func($cfgServer['host'].":".$cfgServer['port'], $cfgServer['user'], $cfgServer['password']) or mysql_die(); $result = mysql_query("SELECT VERSION() AS version") or mysql_die();
$row = mysql_fetch_array($result);
define("MYSQL_MAJOR_VERSION", substr($row["version"], 0, 4));
}// -----------------------------------------------------------------
我用的是phptriad
我该怎么办
帮帮我
建议你写一个简单的代码看看到底是哪个的问题。
c:\mysql\bin\mysqld --install
然后执行
net start mysql
完成