我已经尝试过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.