How to permanently delete a page from a MediaWiki wiki?

血红的双手。 提交于 2019-12-23 07:03:05

问题


I administer a MediaWiki wiki that has been hit by a ton of spam. I've managed to get rid of the spam pages that have been added to the wiki by using an extension, but the pages' data is still present in the wiki's MySQL database. This is bloating the database to over 3GB.

Is there a way to permanently delete the spam pages from the wiki, so that they are completely removed from the database?


回答1:


Run the maintenance script named deleteArchivedRevisions.php.

Note that running MediaWiki maintenance scripts normally requires shell access to the server you're running MediaWiki on. If you don't have that (which might be the case on some cheap shared hosting setups), you can try using the MaintenanceShell extension instead.



来源:https://stackoverflow.com/questions/15870930/how-to-permanently-delete-a-page-from-a-mediawiki-wiki

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!