Offline Wikipedia Setup

Manual:Importing XML dumps

Ars Technica:


  java -jar mwdumper-1.16.jar --format=sql:1.5 enwiki-20131001-pages-articles-multistream.xml.bz2  |    mysql -u wikiuser -p my_wiki

java -jar mwdumper-1.16.jar enwiki-latest-pages-articles-multistream.xml --format=sql:1.5 > enwiki-latest-pages-articles-multistream.sql

importDump.php is a command line script located in the maintenance folder of your MediaWiki installation. If you have shell access, you can call importdump.php like this:

php importDump.php <dumpfile>

where <dumpfile> is the name of the XML dump file. If the file is compressed and that has a .gz or .bz2 file extension, it is decompressed automatically.


-- JimSkon - 2011-12-30

Topic revision: r4 - 2013-11-27 - JimSkon
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback