Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

Discuz! 论坛安装图解傻瓜教程

[复制链接]
CeciYeung 发表于 2005-3-10 09:49:39 | 显示全部楼层
Discuz! info: MySQL Query Error

Time: 2005-3-10 1:47am
Script: /ceci/bbs/install.php?language=chinese_gb2312

SQL: CREATE DATABASE dbname
Error: Access denied for user: 'ceci@localhost' to database 'dbname'
数据库用户权限不足,请联系空间商解决

An error report has been dispatched to our administrator.
這是什麽問題啊???
回复

使用道具 举报

sineer 发表于 2005-3-10 20:22:22 | 显示全部楼层
<?php

/*
        [DISCUZ!] index.php - Crossday Discuz! Board 's index page
        This is NOT a freeware, use is subject to license terms

        Version: 2.0.0
        Author: Crossday (info@discuz.net)
        Copyright: Crossday Studio (www.crossday.com)
        Last Modified: 2002/12/5 10:00
*/

require "./include/common.php";
require $discuz_root.'./include/forum.php';

$discuz_action = 1;

if(isset($showoldetails)) {
        switch ($showoldetails) {
                case 'no': setcookie('onlinedetail', 0, $timestamp + 86400 * 365, $cookiepath, $cookiedomain); break;
                case 'yes': setcookie('onlinedetail', 1, $timestamp + 86400 * 365, $cookiepath, $cookiedomain); break;
        }
} else {
        $showoldetails = false;
}

$currenttime = gmdate($timeformat, $timestamp + $timeoffset * 3600);
$lastvisittime = gmdate("$dateformat $timeformat", $lastvisit + $timeoffset * 3600);

$memberenc = rawurlencode($lastmember);
$discuz_userenc = rawurlencode($discuz_userss);
$newthreads = $timestamp - $lastvisit;

if(empty($gid)) {

        $navigation = $navtitle = '';

        if($_DCACHE['announcements']) {
                $announcements = $space = '';
                foreach($_DCACHE['announcements'] as $announcement) {
                        if($timestamp >= $announcement['starttime'] && ($timestamp <= $announcement['endtime'] || !$announcement['endtime'])) {
                                $announcements .= $space.'<a href="announcement.php?id='.$announcement['id'].'#'.$announcement['id'].'"><span class="bold">'.$announcement['subject'].'</span> '.
                                        '('.gmdate($dateformat, $announcement['starttime'] + $timeoffset * 3600).')</a>';
                                $space = '&nbsp; &nbsp; &nbsp; &nbsp;';
                        }
                }
                if(strlen($announcements) > 200) {
                        $announcements = '<marquee direction="left" scrollamount="3" onMouseOver="this.stop();" onMouseOut="this.start();">'.$announcements.'</marquee>';
                }
        } else {
                $announcements = 'There are no announcements up to '.gmdate("$dateformat $timeformat", $timestamp + $timeoffset * 3600);
        }
        unset($_DCACHE['announcements']);

        $threads = $posts = 0;
        $forumlist = $catforumlist = $forums = $catforums = $categories = array();
        $query = $db->query("SELECT fid, fup, type, icon, name, description, moderator, threads, posts, lastpost, viewperm FROM $table_forums WHERE status='1' ORDER BY displayorder");
        while($forum = $db->fetch_array($query)) {
                if($forum['type'] != 'sub') {
                        $forum['fup'] ? $forums[] = $forum : ($forum['type'] == 'group' ? $categories[] = $forum : $catforums[] = $forum);
                }
                $forumname[$forum['fid']] = strip_tags($forum['name']);
                if($forum['type'] != 'group') {
                        $threads += $forum['threads'];
                        $posts += $forum['posts'];
                }
        }

        foreach($categories as $group) {
                $forumlist[] = $group;
                foreach($forums as $forum) {
                        if($forum['fup'] == $group['fid'] && $forum['type'] == 'forum') {
                                forum($forum);
                                if(isset($forum)) {
                                        $forumlist[] = $forum;
                                }
                        }
                }
        }

        foreach($catforums as $forum) {
                forum($forum);
                if(isset($forum)) {
                        $catforumlist[] = $forum;
                }
        }
        if($catforumlist) {
                $forumlist[] = array('fid' => 0, 'type' => 'group', 'name' => $bbname);
                $forumlist = array_merge($forumlist, $catforumlist);
        }

        unset($forums, $catforums, $catforumlist, $categories, $group, $forum);

        if($whosonlinestatus) {
                $onlineinfo = explode("\t", $onlinerecord);
                $detailstatus = (!isset($HTTP_COOKIE_VARS['onlinedetail']) && $onlineinfo[0] < 500) || (($HTTP_COOKIE_VARS['onlinedetail'] || $showoldetails == 'yes') && $showoldetails != 'no');

                if($detailstatus) {
                        @include language('actions');

                        updatesession();
                        $onlinenum = $membercount = $guestcount = 0;
                        $whosonline = array();
                        $query = $db->query("SELECT username, status, lastactivity, action, fid FROM $table_sessions ORDER BY lastactivity DESC");
                        while($online = $db->fetch_array($query)) {
                                if($online['username']) {
                                        $membercount++;
                                        $online['usernameenc'] = rawurlencode($online['username']);
                                        switch($online['status']) {
                                                case 'Admin': $online['icon'] = 'online_admin.gif'; break;
                                                case 'SuperMod': $online['icon'] = 'online_supermod.gif'; break;
                                                case 'Moderator': $online['icon'] = 'online_moderator.gif'; break;
                                                default: $online['icon'] = 'online_member.gif'; break;
                                        }

                                        $online['fid'] = $online['fid'] ? $forumname[$online[fid]] : 0;
                                        $online['action'] = $actioncode[$online['action']];
                                        $online['lastactivity'] = gmdate($timeformat, $online['lastactivity'] + ($timeoffset * 3600));
                                        $whosonline[] = $online;
                                } else {
                                        $guestcount++;
                                }
                        }
                        $onlinenum = $membercount + $guestcount;
                        unset($online);
                } else {
                        $query = $db->query("SELECT COUNT(*) FROM $table_sessions");
                        $onlinenum = $db->result($query, 0);
                }

                if($onlinenum > $onlineinfo[0]) {
                        $db->query("UPDATE $table_settings SET onlinerecord='$onlinenum\t$timestamp'");
                        require $discuz_root.'./include/cache.php';
                        updatecache("settings");
                        $onlineinfo = array($onlinenum, $timestamp);
                }

                $onlineinfo[1] = gmdate("$dateformat $timeformat", $onlineinfo[1] + ($timeoffset * 3600));
        }

        if($discuz_user && $newpm) {
                require $discuz_root.'./include/pmprompt.php';
        }

        include template('index');

} else {

        $query = $db->query("SELECT fid, type, name FROM $table_forums WHERE fid='$gid' AND type='group'");
        $cat = $db->fetch_array($query);
        $navigation = '&raquo; '.$cat['name'];
        $navtitle = " - $cat[name]";
        $forumlist = array($cat);

        $threads = $posts = 0;
        $queryg = $db->query("SELECT type, fid, name, lastpost FROM $table_forums WHERE type='group' AND fid='$gid' AND status='1' ORDER BY displayorder");
        $group = $db->fetch_array($queryg);
        $query = $db->query("SELECT * FROM $table_forums WHERE type='forum' AND status='1' AND fup='$group[fid]' ORDER BY displayorder");
        while($forum = $db->fetch_array($query)) {
                $threads += $forum['threads'];
                $posts += $forum['posts'];

                forum($forum);
                if($forum) {
                        $forumlist[] = $forum;
                }
        }
        include template('index');

}

?>
爲什麽出來的是這個?
回复

使用道具 举报

星光一点88 发表于 2005-3-12 08:07:06 | 显示全部楼层
支持!
回复

使用道具 举报

MGTXY 发表于 2005-3-12 17:45:55 | 显示全部楼层
急问下
我在装论坛
customavatars 在哪个目录下
回复

使用道具 举报

秀才SHOW 发表于 2005-3-13 00:59:47 | 显示全部楼层
>> Discuz! Board Installation Wizard

--------------------------------------------------------------------------------

欢迎来到 Crossday Discuz! Board 2.5 Free 安装向导。


--------------------------------------------------------------------------------



Discuz! info: Can not connect to MySQL server

Time: 2005-3-12 4:50pm
Script: /install.php?language=chinese_gb2312

Error: Access denied for user: 'binli@localhost' (Using password: YES)
数据库帐户密码不对,请联系空间商

An error report has been dispatched to our administrator.
回复

使用道具 举报

jhony 发表于 2005-3-13 10:56:30 | 显示全部楼层
谢谢指导,我成功了..
回复

使用道具 举报

kary2005 发表于 2005-3-13 11:59:37 | 显示全部楼层
我在安装完毕,打开浏览器,输入地址 127.0.0.1 测试一下状态时,总是打不开网页,可是我已经都安装了IIS 了.
回复

使用道具 举报

Lanesra 发表于 2005-3-13 16:07:34 | 显示全部楼层
上面说必须用FTP软件把解压缩后的文件上传到服务器上,如果我是直接在服务器上操作的话(因为我管理的是学校的网站,空间是自己的),那么,还需要利用上传工具上传吗》是不是直接在服务器的根文件夹下建立一个“bbs"的文件用来保存解压后的文件就可以了?
回复

使用道具 举报

onlysun 发表于 2005-3-14 13:17:02 | 显示全部楼层
怎么搞不成哟。晕死了,老大帮忙吧!
http://onlylonely.91i.net/bbs/install.php
QQ:170012841
如果有必要的话可以给你空间密码
在线等你回复。
回复

使用道具 举报

xjxxjx12 发表于 2005-3-15 16:04:51 | 显示全部楼层
好啊,我马上去申请空间,先在这里先一下
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-16 09:57 , Processed in 0.032413 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表