打开后台——系统——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;
这段SQL命令意思是清空文章和原来采集过的记录,并没有实现文章ID从1开始,继续输入:TRUNCATE TABLE `dede_archives`;
这段SQL命令意思是清空文章表,文章ID就会从1开始。但是这个命令只将主表dede_archives id设置为了1,这样还不行。一定要同时将微表dede_arctiny和附加表dede_addonarticle一并执行了这样id才可从1开始。继续输入以下代码:ALTER TABLE `dede_archives` AUTO_INCREMENT =1;
ALTER TABLE `dede_arctiny` AUTO_INCREMENT =1;
ALTER TABLE `dede_addonarticle` AUTO_INCREMENT =1;
这样就完美实现了清空所有文章且新建文章ID从1开始。