table name for querying the mediawiki mysql db

master
http://jmtd.livejournal.com/ 2010-04-26 15:14:08 +00:00 committed by Joey Hess
parent f49b9e7411
commit 86484c109d
1 changed files with 7 additions and 1 deletions

View File

@ -59,7 +59,13 @@ specific prefix: e.g. `Category:` will be stripped off.
### Querying the database
If you have access to the relational database in which your mediawiki data is
stored, it is possible to derive a list of page names from this.
stored, it is possible to derive a list of page names from this. With mediawiki's
MySQL backend, the page table is, appropriately enough, called `table`:
SELECT page_namespace, page_title FROM page;
As with the previous method, you will need to do some filtering based on the
namespace.
## Step 2: fetching the page data