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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

让无限个论坛共用一个会员数据的方法(5.0)

[复制链接]
52qingshu 发表于 2007-2-3 06:00:44 | 显示全部楼层
原帖由 摇摆 于 2006-9-22 19:48 发表
这样合并会遇到很多问题……
比如两个论坛精华帖不一样。在A论坛的精华帖。在B论坛也有显示。在B论坛点精华。显示主题不存在
还有很多会员数据。
要是只同步注册会员就好了。其他都不关联。只同步一个ID。可以 ...
回复

使用道具 举报

silentceo 发表于 2007-2-4 14:17:04 | 显示全部楼层
我按照楼主的方法修改后成这样了:


Discuz! info: MySQL Query Error

Time: 2007-2-4 2:16pm
Script: /index.php

SQL: SELECT s.sid, s.styleid, s.groupid='6' AS ipbanned, s.pageviews AS spageviews, s.lastolupdate, s.seccode, m.uid AS discuz_uid,
m.username AS discuz_user, m.password AS discuz_pw, m.secques AS discuz_secques, m.adminid, m.groupid, m.groupexpiry,
m.extgroupids, m.email, m.timeoffset, m.tpp, m.ppp, m.posts, m.digestposts, m.oltime, m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3,
m.extcredits4, m.extcredits5, m.extcredits6, m.extcredits7, m.extcredits8, m.timeformat, m.dateformat, m.pmsound,
m.sigstatus, m.invisible, m.lastvisit, m.lastactivity, m.lastpost, m.newpm, m.accessmasks,m.xspacestatus, m.editormode, m.customshow
FROM cdb_sessions s, cncn21_3.cdb_members m
WHERE m.uid=s.uid AND s.sid='uenbyT' AND CONCAT_WS('.',s.ip1,s.ip2,s.ip3,s.ip4)='219.151.199.16' AND m.uid='1'
AND m.password='98dee097553f7003097f2d3aba3ed98c' AND m.secques=''
Error: SELECT command denied to user: 'cncn21_sj@localhost' for table 'cdb_members'
Errno.: 1142

Similar error report has beed dispatched to administrator before.
回复

使用道具 举报

silentceo 发表于 2007-2-5 12:29:26 | 显示全部楼层
怎么办呢?有哪位好心人帮帮忙?
回复

使用道具 举报

silentceo 发表于 2007-2-8 21:59:05 | 显示全部楼层
顶上来顶上来,等待回音。
回复

使用道具 举报

silentceo 发表于 2007-2-8 22:30:27 | 显示全部楼层
唉,还是同样的错误:
Discuz! info: MySQL Query Error

Time: 2007-2-8 10:28pm
Script: /admincp.php

SQL: SELECT s.sid, s.styleid, s.groupid='6' AS ipbanned, s.pageviews AS spageviews, s.lastolupdate, s.seccode, m.uid AS discuz_uid,
m.username AS discuz_user, m.password AS discuz_pw, m.secques AS discuz_secques, m.adminid, m.groupid, m.groupexpiry,
m.extgroupids, m.email, m.timeoffset, m.tpp, m.ppp, m.posts, m.digestposts, m.oltime, m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3,
m.extcredits4, m.extcredits5, m.extcredits6, m.extcredits7, m.extcredits8, m.timeformat, m.dateformat, m.pmsound,
m.sigstatus, m.invisible, m.lastvisit, m.lastactivity, m.lastpost, m.newpm, m.accessmasks,m.xspacestatus, m.editormode, m.customshow
FROM cdb_sessions s, cncn21_3.cdb_members m
WHERE m.uid=s.uid AND s.sid='z5iFsr' AND CONCAT_WS('.',s.ip1,s.ip2,s.ip3,s.ip4)='219.151.204.149' AND m.uid='1'
AND m.password='98dee097553f7003097f2d3aba3ed98c' AND m.secques=''
Error: SELECT command denied to user: 'cncn21_shouji@localhost' for table 'cdb_members'
Errno.: 1142

Similar error report has beed dispatched to administrator before.
回复

使用道具 举报

silverd 发表于 2007-2-10 15:52:06 | 显示全部楼层
不错!·······
回复

使用道具 举报

天蓝色的鱼 发表于 2007-2-23 19:40:03 | 显示全部楼层
本地共用一个数据是成功了

但在A论坛注册,A论坛立即更新了最新会员

但B论坛虽可使用在A论坛注册的ID 但B论坛最新会员却未更新

需要手动更新缓存方可
回复

使用道具 举报

2snjwy1o 发表于 2007-2-23 20:21:19 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

gregry 发表于 2007-6-5 09:57:17 | 显示全部楼层
楼主的办法需要B的数据库用户在A和B都有权限才行
回复

使用道具 举报

jiantian 发表于 2007-7-9 00:56:02 | 显示全部楼层
两个论坛的管理人员是否 也被同步了呢?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-9-28 01:16 , Processed in 0.135292 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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