可可的可 发表于 2026-4-28 11:43:40

来找个稳妥可靠 可行的办法 复刻旧的网站 New

原先的网站是discuzx3.5   里面已经有几万条数据


由于某些原先    现在想用discuzx5.0弄个新的站点   除了想保存旧的板块以及用户组设置外


其它的都不保留   包括内容也不保留


如果通过升级的话成不成功是待考虑的而且升级后删数据也不是很简单   而且数据删除后那个新帖id应该也不会从1开始


如此种种   希望找个稳妥可靠可行的办法:把旧网站的板块与用户组弄到新的网站


请大神赐教


我知道答案 回答被采纳将会获得1 贡献 已有6人回答

余赚网 发表于 2026-4-28 11:43:49

如果不想花钱,就新建一个5.0的网站,对比3.5,去5.0后台手工设置一样的不就行了。

月落秋水 发表于 2026-4-28 11:44:37

新建个X5, 然后手动设置吧!

IT618应用中心 发表于 2026-4-28 11:45:21

新安装一个x5,备份3.5的帖子跟用户组数据,对比几个表的变化手工编辑批量替换发帖人,重新帖子id排序然后导入新站。不会就找人,编辑这几个数据表应该要不了多少钱,思路应该就是这样。
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

月落秋水 发表于 2026-4-28 11:45:39

如果想删除全部帖子保留版块,直接把版块删除,这样版块内帖子全部被清理,然后再创建一模一样的版块
或者
-- 1 清空主题表TRUNCATE pre_forum_thread;-- 2 清空回复/帖子表TRUNCATE pre_forum_post;-- 3 清空帖子附件关联TRUNCATE pre_forum_attachment;TRUNCATE pre_forum_attachment_unused;-- 4 清空帖子浏览/统计类(可选,干净点)TRUNCATE pre_forum_viewlog;TRUNCATE pre_forum_postcount;-- 5 清空举报、日志等(可选)TRUNCATE pre_forum_report;TRUNCATE pre_forum_modlog;
-- 把所有版块的帖子数、最后回复等清零UPDATE pre_forum_forum SET threads = 0,posts = 0,lastpost = '',lastposter = '',lasttid = 0;
       

                        如果想让帖子tid从1开始,ALTER TABLE pre_forum_thread AUTO_INCREMENT = 1;
       

                        记得备份数据库,问就是ai答案
       

.ce-block {    margin-bottom: 20px;}.ce-block__content,.ce-toolbar__content {        /* max-width:calc(100% - 50px) */        margin-left: auto;    margin-right: auto;}.ce-paragraph {    line-height: 1.6em;    outline: none;    text-indent: 2em;    font-size: 16px;}.ce-paragraph--right {    text-align: right;}.ce-paragraph--center {    text-align: center;}.ce-paragraph--left {    text-align: left;}.ce-paragraph--justify {    text-align: justify;}.ce-paragraph-text-indent {    text-align: justify;}.ce-paragraph:empty::before{content: attr(data-placeholder);color: #707684;font-weight: normal;opacity: 0;}/** Show placeholder at the first paragraph if Editor is empty */.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {opacity: 1;}.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {opacity: 0;}.ce-paragraph p:first-of-type{    margin-top: 0;}.ce-paragraph p:last-of-type{    margin-bottom: 0;}.svg-icon {    width: 1em;    height: 1em;}.svg-icon path,.svg-icon polygon,.svg-icon rect {    fill: #4691f6;}.svg-icon circle {    stroke: #4691f6;    stroke-width: 1;}.inline-code {background: rgba(250, 239, 240, 0.78);color: #b44437;padding: 3px 4px;border-radius: 5px;margin: 0 1px;font-family: inherit;font-size: 0.86em;font-weight: 500;letter-spacing: 0.3px;}

IT618应用中心 发表于 2026-4-28 11:46:25

删比复制简单,如楼上所说,ID从1开始也比复制简单

::Bra 发表于 2026-4-28 11:47:15

pre_forum_forum 版块表
pre_forum_forum_threadtable 版块存档信息
pre_forum_forumfield 版块扩展表
pre_forum_access 访问权限表
pre_common_usergroup 用户组表
pre_common_usergroup_field 会员用户组权限表
可以新装论坛,然后迁移这些表看看
页: [1]
查看完整版本: 来找个稳妥可靠 可行的办法 复刻旧的网站 New