首页>>新闻资讯

dedecms织梦清空文章并恢复文章ID从1开始

2024-09-16 14:28:07 38

方法/步骤
首先进入dedecms网站的后台,选择“系统设置”中的“SQL命令行工具”;
再选择“运行SQL命令行多行命令”,并在下方的命令框中输入以下命令:



第一步

delete from dede_addonarticle;

delete from dede_addonimages;

delete from dede_archives;

delete from dede_arctiny;

delete from dede_co_htmls;

delete from dede_co_urls;

delete from dede_co_mediaurls;

delete from dede_tagindex ;

delete from dede_taglist;

delete from dede_keywords;


第二步

TRUNCATE TABLE `dede_archives`;

TRUNCATE TABLE `dede_archives`;


第三步

ALTER TABLE `dede_archives` AUTO_INCREMENT =1;

ALTER TABLE `dede_arctiny` AUTO_INCREMENT =1;

ALTER TABLE `dede_addonarticle` AUTO_INCREMENT =1;


« 上一篇:dedecms修改文章页面图片的路径

» 下一篇:dedecms织梦手机站m目录启用二级域名方法