帝國CMS刷新內容頁出現 Table ‘xxxx.phome_ecms_news_data_ 解決辦法
發布時間:2019-07-24 來源:互聯網 瀏覽: 關鍵詞:
帝國CMS刷新內容頁出現以下錯誤
Table '***.phome_ecms_news_data_' doesn't exist select keyid,dokey,newstempid,closepl,infotags,address from ***_ecms_news_data_ where id='xxxx' limit 1
這個主要是因為信息表中該信息已經刪除了,但是索引表中還存在,所以就出錯了。
執行SQL語句處理掉多余的id既可解決問題:
delete from `phome_ecms_news_index` where id not in(select id from phome_ecms_news)
當然,如果要查詢可以用如下指令:
select id from `phome_ecms_news_index` where id not in(select id from phome_ecms_news);
如果清空index,可以用如下指令添加:
update phome_ecms_news_index set checked=1,newstime=1451024707,truetime=1451024748,lastdotime=1451031902,havehtml=1;
責任編輯:mokuge