Page
天下维客,你可以修改的网络知识库
| 返回到Mediawiki数据库条目↑ | Page |
这个表中的内容类似这样:Page表的内容示例
我翻译的中粗体文版本,英文原文参见下面:
- Page表可以被看作是“wiki的核心”,在Mediawiki安装时。。。第一次被引入是在r6710,在1.5版本中。
- 页面本身的文字内容被存放在text表中。当去检索一篇文章的内容时,MW首先查找在这表中page_title字段。然后,用page_latest字段搜索revison表中的rev_id字段,在这个处理过程中rev_text_id被得到。得到的rev_text_id的值用来在text表中寻找old_id以便检索文本的内容。
- 如果你想要完整的手工删除一个页面,确认删除了page表中的内容,还有这个页面的所有在revison表中的版本信息。还有所有的在text表中相关的页面。这些可以在做完page中的行后进行。然后在命令行下运行maintenance/deleteOrphanedRevisions.php.
- The page table can be considered the "core of the wiki". Each page in a MediaWiki installation has an entry here which identifies it by title and contains some essential metadata. It was first introduced in r6710, in MediaWiki 1.5.
- The text of the page itself is stored in the text table. To retrieve the text of an article, MediaWiki first searches for page_title in this table. Then, page_latest is used to search the revision table for rev_id, and rev_text_id is obtained in the process. The value obtained for rev_text_id is used to search for old_id in the text table to retrieve the text.
- Note: If you want to completely delete a page manually from the database, be sure to delete the entry for the page in the page table, and for all the page's revisions in the revision table, and all of the text rows corresponding only to the page in the text table. This can be done by deleting the page row, then running maintenance/deleteOrphanedRevisions.php.


