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

 找回密码
 立即注册
搜索

服务器搬家后UCenter Home出现问题了

[复制链接]
princewang 发表于 2009-11-13 11:28:42 | 显示全部楼层 |阅读模式
MySQL Error
Message: MySQL Query Error
SQL: SELECT uid, username, safecv, password FROM `sqlbook`.pw_members WHERE uid='103' LIMIT 1
Error: SELECT command denied to user 'books'@'localhost' for table 'pw_members'
Errno.: 1142

用了新的数据库名及数据库用户名。
回复

使用道具 举报

玻璃屋女孩 发表于 2009-11-13 11:30:53 | 显示全部楼层
你的uchome数据表前缀是pw_吗,检查一下
回复

使用道具 举报

 楼主| princewang 发表于 2009-11-13 11:33:08 | 显示全部楼层
home里面的配置,安装的时候按默认!


<?php
/*
        [Ucenter Home] (C) 2007-2008 Comsenz Inc.
        $Id: config.new.php 9293 2008-10-30 06:44:42Z liguode $
*/

//Ucenter Home配置参数
$_SC = array();
$_SC['dbhost']                  = 'localhost'; //服务器地址
$_SC['dbuser']                  = 'books'; //用户
$_SC['dbpw']                          = 'xxxx'; //密码
$_SC['dbcharset']                 = 'utf8'; //字符集
$_SC['pconnect']                 = 0; //是否持续连接
$_SC['dbname']                  = 'sqlbooks'; //数据库
$_SC['tablepre']                 = 'uchome_'; //表名前缀
$_SC['charset']                 = 'utf-8'; //页面字符集

$_SC['gzipcompress']         = 0; //启用gzip

$_SC['cookiepre']                 = 'uchome_'; //COOKIE前缀
$_SC['cookiedomain']         = ''; //COOKIE作用域
$_SC['cookiepath']                 = '/'; //COOKIE作用路径

$_SC['attachdir']                = './attachment/'; //附件本地保存位置(服务器路径, 属性 777, 必须为 web 可访问到的目录, 相对目录务必以 "./" 开头, 末尾加 "/")
$_SC['attachurl']                = 'attachment/'; //附件本地URL地址(可为当前 URL 下的相对地址或 http:// 开头的绝对地址, 末尾加 "/")

$_SC['siteurl']                        = ''; //站点的访问URL地址(http:// 开头的绝对地址, 末尾加 "/"),为空的话,系统会自动识别。

$_SC['tplrefresh']                = 0; //判断模板是否更新的效率等级,数值越大,效率越高; 设置为0则永久不判断

//Ucenter Home安全相关
$_SC['founder']                 = '1,103'; //创始人 UID, 可以支持多个创始人,之间使用 “,” 分隔。部分管理功能只有创始人才可操作。
$_SC['allowedittpl']        = 0; //是否允许在线编辑模板。为了服务器安全,强烈建议关闭

//应用的UCenter配置信息(可以到UCenter后台->应用管理->查看本应用->复制里面对应的配置信息进行替换)
define('UC_CONNECT', 'mysql'); // 连接 UCenter 的方式: mysql/NULL, 默认为空时为 fscoketopen(), mysql 是直接连接的数据库, 为了效率, 建议采用 mysql
define('UC_DBHOST', 'localhost'); // UCenter 数据库主机
define('UC_DBUSER', 'books'); // UCenter 数据库用户名
define('UC_DBPW', 'xxxx'); // UCenter 数据库密码
define('UC_DBNAME', 'sqlbooks'); // UCenter 数据库名称
define('UC_DBCHARSET', 'utf8'); // UCenter 数据库字符集
define('UC_DBTABLEPRE', '`sqlbooks`.uc_'); // UCenter 数据库表前缀
define('UC_DBCONNECT', '0'); // UCenter 数据库持久连接 0=关闭, 1=打开
define('UC_KEY', '3az1hc98w8I117N810d2E8bb65sah321q0MfV11ag9e7Y8Pcb0S670Qdh5KbU0jc'); // 与 UCenter 的通信密钥, 要与 UCenter 保持一致
define('UC_API', 'http://www.bookhall.net/ucenter'); // UCenter 的 URL 地址, 在调用头像时依赖此常量
define('UC_CHARSET', 'utf8'); // UCenter 的字符集
define('UC_IP', '127.0.0.1'); // UCenter 的 IP, 当 UC_CONNECT 为非 mysql 方式时, 并且当前应用服务器解析域名有问题时, 请设置此值
define('UC_APPID', '1'); // 当前应用的 ID
define('UC_PPP', 20);

$_SC['bbs_dbhost']                  = 'localhost'; //Mysql服务器地址
$_SC['bbs_dbuser']                  = 'books'; //用户
$_SC['bbs_dbpw']                  = 'xxxx'; //密码
$_SC['bbs_dbcharset']                 = 'utf8'; //字符集
$_SC['bbs_pconnect']                 = 0; //是否持续连接
$_SC['bbs_dbname']                  = 'sqlbook'; //数据库
$_SC['bbs_tablepre']                 = 'pw_'; //表名前缀
$_SC['bbs_cookiepre']                 = ''; //COOKIE前缀
$_SC['bbs_cookiedomain']         = ''; //COOKIE作用域
$_SC['bbs_cookiepath']                 = '/'; //COOKIE作用路径
$_SC['bbs_ver']                 = '7.5'; //论坛版本
$_SC['bbs_dbhash']                 = '^%W1cc8zed';  //不需要配置
$_SC['bbs_sitehash']                 = '10VVQDAwRbAAIBAQsGVg1TU1RWXQIHAgQDVlxRAg0CUAI';  //不需要配置
回复

使用道具 举报

 楼主| princewang 发表于 2009-11-13 11:34:39 | 显示全部楼层
config.inc.php里面的部分配置


<?php
define('UC_DBHOST', 'localhost');
define('UC_DBUSER', 'books');
define('UC_DBPW', 'xxxx');
define('UC_DBNAME', 'sqlbooks');
define('UC_DBCHARSET', 'utf8');
define('UC_DBTABLEPRE', 'uc_');
define('UC_COOKIEPATH', '/');
define('UC_COOKIEDOMAIN', '');
define('UC_DBCONNECT', 0);
define('UC_CHARSET', 'utf-8');
回复

使用道具 举报

玻璃屋女孩 发表于 2009-11-13 11:35:39 | 显示全部楼层
你参考这个搬家教程检查一下
http://faq.comsenz.com/viewnews-504
回复

使用道具 举报

云天一 发表于 2009-11-13 17:59:28 | 显示全部楼层
Error: SELECT command denied to user 'books'@'localhost' for table 'pw_members'

这句表示你的数据库用户 没有select权限

可能是真的没有select权限
或者你的数据库相关信息填错了
回复

使用道具 举报

蓝豆 发表于 2009-11-13 19:19:30 | 显示全部楼层
这句表示你的数据库用户 没有select权限

可能是真的没有select权限
或者你的数据库相关信息填错了
云天一 发表于 2009-11-13 17:59


祝贺楼上的加入COMSENZ!团队了
回复

使用道具 举报

云天一 发表于 2009-11-13 19:21:06 | 显示全部楼层
7# 蓝豆


    ((em:12))
回复

使用道具 举报

蓝豆 发表于 2009-11-13 21:56:20 | 显示全部楼层
蓝豆
云天一 发表于 2009-11-13 19:21



    羡慕ing...............
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-16 02:49 , Processed in 0.123990 second(s), 20 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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