GuildWiki:Database dumps

Below are links to GuildWiki's database dumps. They contain all pages on GuildWiki in XML format.

Who needs them?

 * System administrators who have set up the mediawiki software on their own server may use the full or the current dump to run a copy of GuildWiki.
 * Programmers who want to run a program to look at many pages on the wiki or use their own programs to find information that is hard to find via the wiki's search page can use the pages_current.xml.
 * Regular Users definitely do not need a file that, in the small version, at the time of this writing, exceeds 60 MB in size and expands on your harddisk to 250 MB of information that is no different (and slightly out of date) than what you find online in the wiki anyway. Printed out at 100 lines per page, the file would take around 40,000 (forty thousand) pages.

Where are they?
Wikia makes current dumps available every few days (weekly?). The files and their creation dates can be found in the master list of all database dumps:
 * pages_full.xml.gz ~1GB compressed
 * pages_current.xml.gz ~60MB compressed

Both of these contain article text only - pages_current.xml contains only the most recent revision of each article, while pages_full.xml contains the full history of every article. Wikia does not perform dumps of images.

Historic dumps from before the builds wipe and the wikia move respectively are available from Tanaric's website.

How to create a local mirror of GuildWiki
See the instructions on meta.wikimedia.org.

Old instructions that may be useful if you want to work with the historic dumps are below this line.

The following assumes that you know how to install and setup MediaWiki, MySQL, PHP as well as the web server under which MediaWiki runs (typically, Apache).

Basic procedure (Unix-only, as the image filenames contain names that windows cannot handle):


 * 1) Install and setup the MediaWiki software.  When you do this, you must set the mediawiki "Site Name" ($wgSitename) to "GuildWiki".  If you do not do this, some GuildWiki pages will not be accessible (example: the "Community portal" link will not work).
 * 2) Download and uncompress the GuildWiki dump.  Most people will want the "All articles" dump.  The following instructions will use the filename, "/tmp/gwiki_cur", as the name of the file that contains the uncompressed dump.
 * 3) Download the .zip file that contains the images for the dump, but do not yet extract the images.
 * 4) Make sure that MySQL has been started.  Also make sure that "AdminSettings.php" in the top-level MediaWiki directory contains the name and password of a MySQL user that can create databases (e.g., "root", if you're doing a private installation and are aware of the security issues).  If this file does not exist, use "AdminSettings.sample" as a template, and fill in the name and password.
 * 5) cd to the top-level MediaWiki directory, and run the command:     php maintenance/importDump.php < /tmp/gwiki_cur Note that this will take several hours to run.  Also, do not extract the image files before doing this step; doing so will cause importDump.php</tt> to take several more hours to run, because it will attempt to create all image thumbnails during the import.
 * 6) Now that the database import has finished, extract the images into the MediaWiki "images</tt>" subdirectory.  Note that you must preserve the directory structure in the images .zip</tt> file (don't give the "-j</tt>" option to unzip</tt>).
 * 7) Run the following commands in the top-level MediaWiki directory (e.g., if you're still in the "images</tt>" subdirectory, do "cd ..</tt>"):     php maintenance/rebuildImages.php    php maintenance/rebuildImages.php --missing    php maintenance/rebuildtextindex.php</tt> The first command will run very quickly (and may not be necessary), but the other commands will take several minutes to over a half-hour to run.
 * 8) Install the ParserFunctions extension.
 * 9) Start your webserver, if necessary, and browse to your MediaWiki/GuildWiki Main Page. Note that the GuildWiki Main Page will not be displayed; you will see the default MediaWiki Main Page, instead.  This is because the MediaWiki Main Page gets an "edit date" of when you installed MediaWiki, which will be later than the last "edit date" of the GuildWiki Main Page, and so the MediaWiki one will be displayed.
 * 10) To restore the GuildWiki Main Page: click on the "History" tab of the Main Page (not the "Edit" tab).  On the resulting page, click on the date of the bottommost history line (there should be only two).  This will temporarily display the old GuildWiki Main Page.  To make it permanently displayed, click on the "Edit" tab, and, once the edit page is displayed, click on "Save Page", near the bottom of the page.
 * 11) That's it.  Your local GuildWiki copy should now be functional.  Note, however, that displaying pages can be slow; this because, the first time a page is displayed, MediaWiki must render and cache certain parts.  Subsequent displays of the same page should be faster.