帝国CMS数据表id清零和栏目数量清零方法
//清空所有栏目
TRUNCATE `[!db.pre!]enewsclass`;
TRUNCATE `[!db.pre!]enewsclassadd`;
//指定栏目数据清零
update `[!db.pre!]enewsclass` set infos = 0, allinfos = 0 where classid=2 limit 1;
注:如果不是全部清零请写上classid,全部清零代码:update [!db.pre!]enewsclass set infos = 0, allinfos = 0;
//后台登陆日志
TRUNCATE `[!db.pre!]enewslog`;
//后台操作日志
TRUNCATE `[!db.pre!]enewsdolog`;
//后台登陆失败
TRUNCATE `[!db.pre!]enewsloginfail`;
//清空NEWS表
TRUNCATE `[!db.pre!]ecms_news`;
TRUNCATE `[!db.pre!]ecms_news_check`;
TRUNCATE `[!db.pre!]ecms_news_check_data`;
TRUNCATE `[!db.pre!]ecms_news_data_1`;
TRUNCATE `[!db.pre!]ecms_news_doc`;
TRUNCATE `[!db.pre!]ecms_news_doc_data`;
TRUNCATE `[!db.pre!]ecms_news_doc_index`;
TRUNCATE `[!db.pre!]ecms_news_index`;
清除它的把news改一个就可以
//清空TAGS表
TRUNCATE `[!db.pre!]enewstags`;
TRUNCATE `[!db.pre!]enewstagsclass`;
TRUNCATE `[!db.pre!]enewstagsdata`;
//前台会员表
TRUNCATE `[!db.pre!]enewsmember`;
TRUNCATE `[!db.pre!]enewsmemberadd`;
//交易(支付)记录表
TRUNCATE `[!db.pre!]enewspayrecord`;
//下载记录表
TRUNCATE `[!db.pre!]enewsdownrecord`;
//购买备份表
TRUNCATE `[!db.pre!]enewsbuybak`;
//附件表
TRUNCATE `[!db.pre!]enewsfile_1`;
执行是记得后面加“;”号。
注意执行命令的时候要提前备份数据库,网邻网络不承担数据丢失带来的责任哦!