喜悦国际村 
» 游客:  注册 | 登录 | 搜索 | 统计 | 帮助

RSS 订阅当前论坛  

喜悦证交所已经关闭

上一主题 下一主题
 12  1/2  1  2  > 
     
标题: 帮我看看出了什么问题??急  
 
liureven
新手上路
Rank: 1



UID 77098
精华 0
积分 10
帖子 6
金钱 10 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-26
状态 离线
帮我看看出了什么问题??急

以下为我运行后出现的问题:
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\config.php on line 97

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\config.php on line 97

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\config.php on line 100

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\config.php on line 100
Error while creating database (Errornumber 1045: "Access denied for user 'ODBC'@'localhost' (using password: NO)")

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\install.php on line 17

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\install.php on line 17
Error while creating signup table (Errornumber 1045: "Access denied for user 'ODBC'@'localhost' (using password: NO)")

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\install.php on line 26

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\install.php on line 26
Error while creating inbox table (Errornumber 1045: "Access denied for user 'ODBC'@'localhost' (using password: NO)")

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\install.php on line 34

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\install.php on line 34
Error while creating oldMessages table (Errornumber 1045: "Access denied for user 'ODBC'@'localhost' (using password: NO)")

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\install.php on line 42

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\install.php on line 42
Error while creating outbox table (Errornumber 1045: "Access denied for user 'ODBC'@'localhost' (using password: NO)")

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in D:\masterphp\register\install.php on line 50

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in D:\masterphp\register\install.php on line 50
Error while creating news table (Errornumber 1045: "Access denied for user 'ODBC'@'localhost' (using password: NO)")
There where some errors while installing Advance Login System

DO NOT FORGET TO REMOVE THIS FILE AFTER THE INSTALLATION!!!
2006-7-26 07:00 PM#1
查看资料  发短消息  顶部
 
c1a1o1
版主
Rank: 7Rank: 7Rank: 7
一品带刀护卫


UID 68669
精华 0
积分 8936
帖子 2357
金钱 8936 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2006-2-17
状态 离线
[推荐阅读] 逐行(没有固定次序)写MySQL数据库,帮我提升一下效率!
问题很多,先检查数据库连接情况,再看其他的地方!



生日礼物送什么www.feichanglipin.cn
生日礼物      补肾
2006-7-26 07:02 PM#2
查看资料  Blog  发短消息  QQ . .   顶部
 
mayi
中级会员
Rank: 3Rank: 3
初级会员


UID 68189
精华 0
积分 332
帖子 344
金钱 332 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2006-1-20
状态 离线
[推荐阅读] [上海]高薪诚聘 月薪10000-15000 PHPER
连接数据库问题
把连接的代码帖出来 让大家瞻仰 瞻仰
2006-7-26 07:04 PM#3
查看资料  Blog  发短消息  顶部
 
hero913 (文风大侠)
高级会员
Rank: 4
现在穷疯了,没钱


UID 70150
精华 0
积分 924
帖子 958
金钱 924 喜悦币
威望 0
人脉 0
阅读权限 50
注册 2006-3-23
状态 离线
[推荐阅读] php搜索特定字符串 。。。
回复 #1 liureven 的帖子

全部都一个错误
不能连接数据库
应该是没有定义连接数据库吧,
代码贴出来看下




MSN:aaron-0913@hotmail.com
skype:chenqiangang
QQ:105915495
php我的最爱,希望志同道合的加我,聊一聊
给我留言
2006-7-26 07:04 PM#4
查看资料  访问主页  Blog  发短消息  QQ . .   顶部
 
liureven
新手上路
Rank: 1



UID 77098
精华 0
积分 10
帖子 6
金钱 10 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-26
状态 离线
[推荐阅读] 哪位帮忙看看
是我数据库没连接上PHP吗?

但我测试过PHP连的上MYSQL
2006-7-26 07:10 PM#5
查看资料  发短消息  顶部
 
liureven
新手上路
Rank: 1



UID 77098
精华 0
积分 10
帖子 6
金钱 10 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-26
状态 离线
[推荐阅读] 帮忙看下这个数据库表创建错在哪?
config.php

<?PHP
// These variables are needed to connect to the database, if your not sure about these data contact your hosting company.
// since this is VERY important to the log-in system
// if you are using a local system to to test, the server is (almost) always localhost.
// for tripod users: don't fill in a username / password. Only your databasename
// for tripod users: username_country_db so that would be (example) utimer_nl_db
// for tripod users: if you are unsure check in the FAQ of tripod

$server = "localhost";         // often localhost
$username = "root";                         // Your MySQL server username
$password = "123456";                         // Your MySQL server password
$database = "";                         // If you fill in nothing database 'members' will be used. If 'members' doesn't exist it will be created.
$DBprefix = "ALS";                        // the prefix for the tables in the database (can be left blank)

// The ranks for the members. The first in the list is userlevel is 1, every item after (seperate with comma's) increases with one.
// so the example below is: 1 = newbie, 2=new member, 3=member, 4=high member, 5=very high member, ect
$ranks = array(
                1=>"newbie",
                2=>"new member",
                3=>"member",
                4=>"high member",
                5=>"very high member",
                6=>"supreme member",
                7=>"ultra member",
                8=>"godlike member",
                9=>"god member",
                10=>"low god",
                11=>"medium god",
                12=>"high god",
                13=>"very high god",
                14=>"supreme god",
                15=>"ultra god",
                16=>"perfect"
              );
                  
// script options:
$usernameLengthMIN = 1;                 // Sets the minium nubmer of characters in the username
$usernameLengthMAX = 20;                // Sets the maxium number of characters in the username (max 20 chars!)
$passwordLengthMIN = 3;                 // Sets the minium nubmer of characters in the password
$passwordLengthMAX = 8;                        // Sets the maxium number of characters in the password (max 20 chars!)
$UseMailConfirm = true;                 // Only set this to false if your host does not support mail()
$AllowForgotPassword = true;         // Only set this to false if your host does not support mail()
$UsernameValCharOnly = true;         // If set on true the user can only use usernames with A to Z, a to z, 0 to 9
$passwordValCharOnly = true;         // If set on true the user can only use passwords with A to Z, a to z, 0 to 9
$allowChangePassword = true;         // If set on false the user cant change passwords
$makeAdminOnlyActivate = false;        // Set this to true if you want to activate al accounts by hand throught the admin screen
$allowResend = true;                        // Set this to false if you don't want the users to be able to have the activation code resend
                                                                // Note that the form will be visible anyway and that if $UseMailConfirm = false if wont be send either
$TripodSupport = false;                        // Only set this to true if you are hosted on tripod.

// ErrorStrings:
$couldNotConnectMysql = "Could not connect MySQL<BR>\n please check your settings in config.php";
$couldNotOpenDatabase = "Could not open database<BR>\n please check your settings in config.php";
$disabledFeatures = "The adminstrator of this site has disabled this feature";
$incorrectLogin = "Incorrect login";
$underAttackReLogin = "This account was under attack. Therefore it was locked. To terminate the lock log-in with you correct loginname and password. After this log-in the lock will be terminated and you can you use our account as normal<BR> NOTE: make sure you do not make any type errors. This would activate the lock again.";
$underAttackPleaseWait = "This account is under attack. Please wait an until the account is released again.";
$accountNotActivated = "This account has not been activated yet.";
$incorrectUserMailaders = "The username / e-mail-combination you entered is incorrect.";
$activationCodeHasBeenResend = "Your activationcode has been resend to your mailadres.";
$incorrectUserActcode ="The username/activation-combination you entered is not correct. Please try again.";


// The content of the activation email
// also possible is to put a link in that message like :
// http:// your url /activate.php?username=$username1&actnum=$actnum
// this would allow the user to direcly submit there activation without having to enter
// al the data again in the activation form.
// use %p to print the activation number, use %a if you want the use the % sign
$email_message_content = "Your activation number: %p";
// also set the title of the message
$email_message_title = "Login sytem";
// and we put the sender in this mail.
// syntax: "From: YOUR SENDER"
// note this will also be used for the forgot password mail.
$email_message_header = "From: Sign-up script";
// the content of the forgot password mail:
// use %p to print the password, use %a if you want to use the % sign
$message_forgot_password = "Your password:\n %p";
// and here you can give a title (subject) for the forgot password mail.
$title_forgot_password = "Password request";


// +---------------------------------------------------------------------------------------------------------+ //
// +--------------------------- Below this line you do not need to edit the code! ---------------------------+ //
// +---------------------------------------------------------------------------------------------------------+ //

// if the prefix is not empty add an _ (underscore)
if ($DBprefix != ""){$DBprefix = $DBprefix . "_";}

// Code to make sure that the $database field was filled and code to connect to the database
if ($database == ""){
        // Check it the database exist
        $query = "use members";
        // If this query is succesfull, and returns a 1. this means that the database members can be used.
        // If it returns 'null' then it doesn't exist.
        if (mysql_query($query) == null){
                //if it doesn't exist we create it and connect to it.
                $query = "CREATE DATABASE members";
                $result = mysql_query($query);
                if ($result == 1){
                $conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql);
                mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
                }else{echo "Error while creating database (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}
        }
        else{
                // It already exist so we will connect to it.
                $database= "members";
                $conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql);
                mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);       
                //echo "Êý¾Ý¿âÑ¡Ôñ³É¹¦ÁË!";
        }       
}
else{
        // connect or show an error.
        $conn = mysql_connect($server,$username,$password) or die ($couldNotConnectMysql);
        mysql_select_db($database,$conn) or die ($couldNotOpenDatabase);
}
?>
2006-7-26 07:12 PM#6
查看资料  发短消息  顶部
 
liureven
新手上路
Rank: 1



UID 77098
精华 0
积分 10
帖子 6
金钱 10 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-26
状态 离线
[推荐阅读] 想学PHP框架,问各位N人几个问题
install.php

<?PHP
// check if we have to update or even preupdate:
if (!empty($_GET["action"]))
        $action = $_GET["action"];
if (!empty( $_GET["preUpdate"]))
        $preUpdate = $_GET["preUpdate"];
if (!empty($_GET["special"]))
        $special = $_GET["special"];
// let the config.php connect to the database.
include("config.php");




        // make the signup table
        $query = "CREATE TABLE ".$DBprefix."signup(username VARCHAR(20), password VARCHAR(20), mailadres VARCHAR(100), actnum VARCHAR(20), userlevel TINYINT, signupdate VARCHAR(16), lastlogin VARCHAR(16), lastloginfail BIGINT,numloginfail TINYINT)";  
        $result = mysql_query($query);
        // check it it was succesfull
        if ($result == 1){echo "signup Table succesfully created.<br>";}
        // if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
        else{echo "Error while creating signup table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}
       

// create the inbox
$query4 = "CREATE TABLE `".$DBprefix."inbox`(`messageID` SMALLINT NOT NULL AUTO_INCREMENT,`adres` VARCHAR(20) NOT NULL ,`sender` VARCHAR(20) NOT NULL ,`DateRecieved` DATETIME NOT NULL ,`title` VARCHAR(30) NOT NULL ,`message` TEXT NOT NULL,`isRead` TINYINT NOT NULL,PRIMARY KEY ( `messageID` ));";
$result4 = mysql_query($query4);
// check it it was succesfull
if ($result4 == 1){echo "inbox Table succesfully created.<br>";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating inbox table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}

// create the old messages folder
$query5 = "CREATE TABLE `".$DBprefix."OldMessages`(`messageID` SMALLINT NOT NULL AUTO_INCREMENT,`adres` VARCHAR(20) NOT NULL ,`sender` VARCHAR(20) NOT NULL ,`DateRecieved` DATETIME NOT NULL ,`title` VARCHAR(30) NOT NULL ,`message` TEXT NOT NULL,`isRead` TINYINT NOT NULL,PRIMARY KEY ( `messageID` ));";
$result5 = mysql_query($query5);
// check it it was succesfull
if ($result5 == 1){echo "oldMessages Table succesfully created.<br>";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating oldMessages table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}

// create the outbo folder
$query6 = "CREATE TABLE `".$DBprefix."Outbox`(`messageID` SMALLINT NOT NULL AUTO_INCREMENT,`adres` VARCHAR(20) NOT NULL ,`sender` VARCHAR(20) NOT NULL ,`DateSend` DATETIME NOT NULL ,`title` VARCHAR(30) NOT NULL ,`message` TEXT NOT NULL,PRIMARY KEY ( `messageID` ));";
$result6 = mysql_query($query6);
// check it it was succesfull
if ($result6 == 1){echo "outbox Table succesfully created.<br>";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating outbox table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}

// create the news database
$query7 = "CREATE TABLE `".$DBprefix."news`(`newsID` SMALLINT NOT NULL AUTO_INCREMENT,`title` VARCHAR(20) NOT NULL ,`message` TEXT NOT NULL ,`poster` VARCHAR(30) NOT NULL ,`postDate` DATETIME NOT NULL,PRIMARY KEY ( `newsID` ));";
$result7 = mysql_query($query7);
// check it it was succesfull
if ($result7 == 1){echo "news Table succesfully created.<br>";}
// if it wasn't succesfull print the errornumer (with mysql_errno()) and an description of the error (with mysql_error())
else{echo "Error while creating news table (Errornumber ". mysql_errno() .": \"". mysql_error() ."\")<br>";}






// Print htat the installation is done if so, else print a failure message
if ($result == 1  && $result4 == 1 && $result5 == 1 && $result6 == 1 && $result7 == 1){echo "Installation succesfull!";}else
{echo "There where some errors while installing Advance Login System";}

echo "<br><br><strong> DO NOT FORGET TO REMOVE THIS FILE AFTER THE INSTALLATION!!! </strong>";
?>
2006-7-26 07:13 PM#7
查看资料  发短消息  顶部
 
19750609 (19750609)
中级会员
Rank: 3Rank: 3
中级会员



UID 66093
精华 0
积分 295
帖子 252
金钱 295 喜悦币
威望 0
人脉 0
阅读权限 30
注册 2005-8-22
状态 离线
[推荐阅读] 为什么我的AJAX读取不了XML内容
$server = "localhost";         // often localhost
$username = "root";                         // Your MySQL server username
$password = "123456";                         // Your MySQL server password


可能是是你没有指明数据库$database = "" 不能为空的

$database = "";                         // If you fill in nothing database 'members' will be used. If 'members' doesn't exist it will be created.
$DBprefix = "ALS";                        // the prefix for the tables in the database (can be left blank)



其它滑看,太花了
2006-7-26 07:24 PM#8
查看资料  发短消息  顶部
 
liureven
新手上路
Rank: 1



UID 77098
精华 0
积分 10
帖子 6
金钱 10 喜悦币
威望 0
人脉 0
阅读权限 10
注册 2006-7-26
状态 离线
[推荐阅读] 关于html中的BUTTON在PHP中如何用
应该不是这原因..
2006-7-26 07:31 PM#9
查看资料  发短消息  顶部
 
刀鱼
版主
Rank: 7Rank: 7Rank: 7
好好做人,认真做事


UID 67208
精华 0
积分 680
帖子 825
金钱 680 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2005-12-15
来自 北京
状态 离线
[推荐阅读] 这样的数组用smarty怎么显示啊
相当的那啥......给你个提示(与上面的问题无关): 1 你是否遇到了你不能解决的问题  2 你遇到了什么问题  3 你是否把这个问题说的足够明白 4你确认这个问题需要别人的帮助才能解决.....

..................别的不说了...反正都是"废话"!!!!!!!!!!!!!!!!!!!!!!!!!!!!




有项目需求,请联系:daoyu_06@126.com.
2006-7-26 10:02 PM#10
查看资料  Blog  发短消息  QQ . .   顶部
 12  1/2  1  2  > 
     


  可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题 | 开通个人空间  


 




Powered by Discuz! 6.1.0  © 2001-2010 Comsenz Inc.
Processed in 0.029320 second(s), 6 queries

(冀ICP备05009913号) 管理员:sadly 邮箱/MSN: sadly@phpx.com QQ:824008(长隐) 清除 Cookies - - Archiver - WAP