问题描述
我管理一个被大量垃圾邮件击中的MediaWiki Wiki.通过使用扩展,我设法摆脱了已添加到Wiki的垃圾邮件页面,但是该页面的数据仍然存在于Wiki的MySQL数据库中.这使数据库膨胀到3GB以上.
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.
是否有一种方法可以从Wiki永久删除垃圾邮件页面,以便将其完全从数据库中删除?
Is there a way to permanently delete the spam pages from the wiki, so that they are completely removed from the database?
推荐答案
运行名为维护脚本 href ="http://www.mediawiki.org/wiki/Manual%3aDeleteArchivedRevisions.php"> deleteArchivedRevisions.php .
Run the maintenance script named deleteArchivedRevisions.php.
请注意,运行MediaWiki维护脚本通常需要对运行MediaWiki的服务器具有外壳访问权限.如果您没有此功能(某些廉价的共享主机设置可能就是这种情况),则可以尝试使用 MaintenanceShell扩展.
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.
这篇关于如何从MediaWiki Wiki永久删除页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!