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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 我手上有两个DZ2.5论坛源码,求大神怎么合并成一个论坛

[复制链接]
同城游 发表于 2013-5-5 15:03:12 | 显示全部楼层 |阅读模式
本帖最后由 同城游 于 2013-5-5 15:06 编辑

我手上有两个DZ2.5论坛源码,求大神怎么合并成一个论坛

因为两个论坛 都有用,现在想整一起,搞一个论坛就好,

有木有大神,RMB求解决,
跟帖留下联系方式
baxter 发表于 2013-5-5 15:52:49 | 显示全部楼层
Discuz! X2.5合并工具(2012.05.16更新)
https://discuz.dismall.com/thread-2896516-1-1.html
回复

使用道具 举报

 楼主| 同城游 发表于 2013-5-5 17:13:19 | 显示全部楼层
baxter 发表于 2013-5-5 15:52
Discuz! X2.5合并工具(2012.05.16更新)
https://discuz.dismall.com/thread-2896516-1-1.html

是测试版的 用不了,
回复

使用道具 举报

lidan 发表于 2013-5-6 13:43:20 | 显示全部楼层
你是想合并论坛数据?
回复

使用道具 举报

白乐天 发表于 2013-5-6 15:29:36 | 显示全部楼层
同城游 发表于 2013-5-5 17:13
是测试版的 用不了,

可以联系我看看。
回复

使用道具 举报

crx349 发表于 2013-5-8 09:43:17 | 显示全部楼层
LS专门做合并的 可以试试
回复

使用道具 举报

 楼主| 同城游 发表于 2013-5-12 20:16:39 | 显示全部楼层
白乐天 发表于 2013-5-6 15:29
可以联系我看看。

联系你了,
回复

使用道具 举报

herochao622 发表于 2013-5-28 11:14:51 | 显示全部楼层
一、
1.查看B( pre_forum_thread )最大tid   1
  SELECT max(tid) as x FROM pre_forum_thread

2.查看B( pre_forum_post)最大pid
  SELECT max(pid) as y FROM pre_forum_post 1

3.查看B( pre_forum_threadclass)最大typeidX 1
  SELECT max(typeid) as typeidX FROM pre_forum_threadclass

4.查看B( pre_forum_forum )最大fid 1
  SELECT max(fid) as f_x FROM pre_forum_forum

5.查看B( pre_forum_forum )最大fid   35
  SELECT max(fid) as f_x FROM pre_forum_forum

5.更新

  a.更新A( pre_forum_thread )tid
    UPDATE pre_forum_thread SET tid=tid+x
  
  b.更新A( pre_forum_post  )tid
    UPDATE pre_forum_post SET tid=tid+x

  c.更新A( pre_forum_post  )pid
    UPDATE pre_forum_post SET pid=pid+y

  d.更新A( pre_forum_threadclass )typeid
    UPDATE pre_forum_threadclass SET typeid=typeid+typeidX

  e.更新A( pre_forum_threadclass )fid
    UPDATE pre_forum_threadclass SET fid=fid+y
  
  f.更新A( pre_forum_forum )fid
    UPDATE pre_forum_forum SET fid=fid+f_x  
    UPDATE pre_forum_post SET pid=pid+f_x  
    UPDATE pre_forum_thread SET pid=pid+f_x



6.两表合并
  insert into `8086`.pre_forum_thread select * from pre_forum_thread
  insert into `8086`.pre_forum_post   select * from pre_forum_post  
  insert into `8086`.pre_forum_threadclass  select * from  pre_forum_threadclass  
  insert into `8086`.pre_forum_threadclass  select * from  pre_forum_forum

希望对你有帮助 本人整理好的 有问题可咨询 qq366430678
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-18 21:56 , Processed in 0.149917 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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