【发布时间】:2011-11-29 07:59:20
【问题描述】:
我在 Windows 7 上使用 XAMPP。当我尝试打开当前项目的 login.php 时
我收到此错误
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in E:\xampplite\htdocs\newfule\mcp\clientlist.php on line 19
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in E:\xampplite\htdocs\newfule\mcp\clientlist.php on line 19
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in E:\xampplite\htdocs\newfule\mcp\clientlist.php on line 21
Sorry No entries for the Records of Student ......
这是配置文件
<?php
$link = mysql_connect('127.0.0.1', 'root', '');
if (!$link) {
die('Not connected : ' . mysql_error());
}
// make foo the current db
$db_selected = mysql_select_db('fueldb', $link);
if (!$db_selected) {
die ('Can\'t use foo : ' . mysql_error());
}
?>
这是一个警告是在 phpmyadmin
【问题讨论】:
标签: php mysql phpmyadmin xampp