删除Mediawiki中的旧修订

时间:2019-02-17 18:12:15

标签: mysql mediawiki

我已经尝试过deleteOldRevisions脚本,但是该脚本连续运行了几个小时而没有完成工作。我已经阅读了类似的问题:How to delete old MediaWiki revisions when deleteOldRevisions run out of memory,但是建议的MySQL查询似乎不适用于MW 1.31或1.32。例如:

DELETE FROM revision WHERE NOT EXISTS
( SELECT * FROM page WHERE page_id = rev_page AND page_latest = rev_id )

输出:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1.

0 个答案:

没有答案